Fix for files not being downloaded when the don't exist. Closes #122

@asiekierka im not sure if this is the correct fix so could you please verify, thanks.
This commit is contained in:
modmuss50 2019-07-25 16:52:09 +01:00
parent 3435447a77
commit b315d9a553

View file

@ -50,6 +50,9 @@ public final class StaticPathWatcher {
}
public boolean hasFileChanged(Path filePath) {
if(!Files.exists(filePath)){
return true;
}
WatchKey key;
while ((key = service.poll()) != null) {
for (WatchEvent<?> event : key.pollEvents()) {