mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-11-15 03:31:15 +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
|
@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))
|
if (!isDir(dir))
|
||||||
Files.createDirectories(dir);
|
Files.createDirectories(dir);
|
||||||
return FileVisitResult.CONTINUE;
|
return FileVisitResult.CONTINUE;
|
||||||
|
|
Loading…
Reference in a new issue