mirror of https://github.com/zlatinb/muwire
fix detection of moving files into a watched dir on Linux
parent
8e9f79d404
commit
7b021a47eb
|
@ -91,6 +91,8 @@ class DirectoryWatcher {
|
||||||
log.fine("created entry $f")
|
log.fine("created entry $f")
|
||||||
if (f.isDirectory())
|
if (f.isDirectory())
|
||||||
f.toPath().register(watchService, kinds)
|
f.toPath().register(watchService, kinds)
|
||||||
|
else
|
||||||
|
waitingFiles.put(f, System.currentTimeMillis())
|
||||||
}
|
}
|
||||||
|
|
||||||
private void processModified(Path parent, Path path) {
|
private void processModified(Path parent, Path path) {
|
||||||
|
|
Loading…
Reference in New Issue