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
parent
3435447a77
commit
b315d9a553
|
@ -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()) {
|
||||
|
|
Loading…
Reference in New Issue