diff --git a/core/src/main/groovy/com/muwire/core/files/FileManager.groovy b/core/src/main/groovy/com/muwire/core/files/FileManager.groovy index a130d336..b6bcf3a9 100644 --- a/core/src/main/groovy/com/muwire/core/files/FileManager.groovy +++ b/core/src/main/groovy/com/muwire/core/files/FileManager.groovy @@ -193,6 +193,10 @@ class FileManager { Set getSharedFiles(byte []root) { return rootToFiles.get(new InfoHash(root)) } + + boolean isShared(InfoHash infoHash) { + rootToFiles.containsKey(infoHash) + } void onSearchEvent(SearchEvent e) { // hash takes precedence