fix detection of moving files into a watched dir on Linux

pull/5/head
Zlatin Balevsky 2019-06-18 12:20:10 +01:00
parent 8e9f79d404
commit 7b021a47eb
1 changed files with 2 additions and 0 deletions

View File

@ -91,6 +91,8 @@ class DirectoryWatcher {
log.fine("created entry $f")
if (f.isDirectory())
f.toPath().register(watchService, kinds)
else
waitingFiles.put(f, System.currentTimeMillis())
}
private void processModified(Path parent, Path path) {