[FIX] Поменял местами вход и выход

This commit is contained in:
Gravit 2019-05-21 02:18:27 +07:00
parent 6e1126a541
commit b7dfa457ed

View file

@ -76,9 +76,9 @@ public void postDiff(UpdateRequest request, UpdateRequestEvent e, HashedDir.Diff
if(file.isSame(ret, true)) if(file.isSame(ret, true))
{ {
Path source = request.getDir().resolve(path); Path source = request.getDir().resolve(path);
LogHelper.debug("Copy file %s to %s", source.toAbsolutePath().toString(), ret.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(source, ret);
removed.add(path.concat(File.separator).concat(name)); removed.add(path.concat(File.separator).concat(name));
} }
} }