diff --git a/core/src/main/groovy/com/muwire/core/files/DirectoryWatcher.groovy b/core/src/main/groovy/com/muwire/core/files/DirectoryWatcher.groovy index 43165e42..3ae3a64f 100644 --- a/core/src/main/groovy/com/muwire/core/files/DirectoryWatcher.groovy +++ b/core/src/main/groovy/com/muwire/core/files/DirectoryWatcher.groovy @@ -120,7 +120,7 @@ class DirectoryWatcher { private static File join(Path parent, Path path) { File parentFile = parent.toFile().getCanonicalFile() - new File(parentFile, path.toFile().getName()) + new File(parentFile, path.toFile().getName()).getCanonicalFile() } private void publish() { diff --git a/core/src/main/groovy/com/muwire/core/files/HasherService.groovy b/core/src/main/groovy/com/muwire/core/files/HasherService.groovy index b3701a30..15c5f0ae 100644 --- a/core/src/main/groovy/com/muwire/core/files/HasherService.groovy +++ b/core/src/main/groovy/com/muwire/core/files/HasherService.groovy @@ -24,7 +24,7 @@ class HasherService { } void onFileSharedEvent(FileSharedEvent evt) { - if (fileManager.fileToSharedFile.containsKey(evt.file)) + if (fileManager.fileToSharedFile.containsKey(evt.file.getCanonicalFile())) return executor.execute( { -> process(evt.file) } as Runnable) }