[FIX] Исправлено удаление уже скопированных файлов

This commit is contained in:
Gravit 2019-05-21 03:32:37 +07:00
parent 204a341d14
commit 227d0db778

View file

@ -82,7 +82,7 @@ public void postDiff(UpdateRequest request, UpdateRequestEvent e, HashedDir.Diff
LogHelper.debug("Copy file %s to %s", ret.toAbsolutePath().toString(), source.toAbsolutePath().toString()); LogHelper.debug("Copy file %s to %s", ret.toAbsolutePath().toString(), source.toAbsolutePath().toString());
//Let's go! //Let's go!
Files.copy(ret, source); Files.copy(ret, source);
removed.add(IOHelper.toPath(path).toString()); removed.add(path.replace('\\', '/'));
} }
} }
return HashedDir.WalkAction.CONTINUE; return HashedDir.WalkAction.CONTINUE;