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

This commit is contained in:
Gravit 2019-05-21 03:24:44 +07:00
parent d4739d17ed
commit 204a341d14

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(path.concat(File.separator).concat(name)); removed.add(IOHelper.toPath(path).toString());
} }
} }
return HashedDir.WalkAction.CONTINUE; return HashedDir.WalkAction.CONTINUE;