diff --git a/core/src/main/groovy/com/muwire/core/files/FileTree.groovy b/core/src/main/groovy/com/muwire/core/files/FileTree.groovy index 0fe16172..2da9210e 100644 --- a/core/src/main/groovy/com/muwire/core/files/FileTree.groovy +++ b/core/src/main/groovy/com/muwire/core/files/FileTree.groovy @@ -52,6 +52,10 @@ class FileTree { fileToNode.get(file)?.value } + boolean contains(File file) { + fileToNode.containsKey(file) + } + synchronized void traverse(FileTreeCallback callback) { doTraverse(root, callback); }