mirror of https://github.com/zlatinb/muwire
the filetree map gets accessed from the directory watcher thread
parent
7a6365f87a
commit
2bb9480137
|
@ -1,9 +1,11 @@
|
|||
package com.muwire.core.files
|
||||
|
||||
import java.util.concurrent.ConcurrentHashMap
|
||||
|
||||
class FileTree {
|
||||
|
||||
private final TreeNode root = new TreeNode()
|
||||
private final Map<File, TreeNode> fileToNode = new HashMap<>()
|
||||
private final Map<File, TreeNode> fileToNode = new ConcurrentHashMap<>()
|
||||
|
||||
void add(File file) {
|
||||
List<File> path = new ArrayList<>()
|
||||
|
|
Loading…
Reference in New Issue