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.
dev/0.11
modmuss50 2019-07-25 16:52:09 +01:00
parent 3435447a77
commit b315d9a553
1 changed files with 3 additions and 0 deletions

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()) {