[FIX] Исправлен баг с двойным resolve

This commit is contained in:
Gravit 2019-05-21 02:03:29 +07:00
parent c4c50344fb
commit 14a80ef67f

View file

@ -99,7 +99,7 @@ public Path tryFind(NewLauncherSettings.HashedStoreEntry en, HashedFile file) th
if(tfile.isSame(file)) if(tfile.isSame(file))
{ {
LogHelper.debug("[DIR:%s] Found file %s in %s", en.name, name, path); LogHelper.debug("[DIR:%s] Found file %s in %s", en.name, name, path);
Path tdir = Paths.get(en.fullPath).resolve(path).resolve(name); Path tdir = Paths.get(en.fullPath).resolve(path);
try { try {
if(tfile.isSame(tdir, true)) if(tfile.isSame(tdir, true))
{ {
@ -109,7 +109,7 @@ public Path tryFind(NewLauncherSettings.HashedStoreEntry en, HashedFile file) th
} }
} catch (IOException e) } catch (IOException e)
{ {
LogHelper.error("Check file error %s", e.getMessage()); LogHelper.error("Check file error %s %s", e.getClass().getName(), e.getMessage());
} }
} }
return HashedDir.WalkAction.CONTINUE; return HashedDir.WalkAction.CONTINUE;