mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-12-22 16:41:46 +03:00
[FIX] Создаём папки при копировании...
This commit is contained in:
parent
8a53e5a925
commit
ac737c4ccb
1 changed files with 2 additions and 1 deletions
|
@ -584,7 +584,8 @@ private MoveFileVisitor(Path from, Path to) {
|
|||
}
|
||||
|
||||
@Override
|
||||
public FileVisitResult preVisitDirectory(Path dir, BasicFileAttributes attrs) throws IOException {
|
||||
public FileVisitResult preVisitDirectory(Path file, BasicFileAttributes attrs) throws IOException {
|
||||
Path dir = to.resolve(from.relativize(file));
|
||||
if (!isDir(dir))
|
||||
Files.createDirectories(dir);
|
||||
return FileVisitResult.CONTINUE;
|
||||
|
|
Loading…
Reference in a new issue