mirror of
https://github.com/GravitLauncher/Launcher
synced 2025-04-11 18:57:30 +03:00
[FIX] Files.move то не вызывает createParentDirs...
This commit is contained in:
parent
0871b11067
commit
1c7a595132
1 changed files with 3 additions and 1 deletions
|
@ -584,7 +584,9 @@ private MoveFileVisitor(Path from, Path to) {
|
|||
}
|
||||
|
||||
@Override
|
||||
public FileVisitResult preVisitDirectory(Path dir, BasicFileAttributes attrs) {
|
||||
public FileVisitResult preVisitDirectory(Path dir, BasicFileAttributes attrs) throws IOException {
|
||||
if (!isDir(dir))
|
||||
Files.createDirectories(dir);
|
||||
return FileVisitResult.CONTINUE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue