[FIX] Создаём папки при копировании...

This commit is contained in:
Zaxar163 2020-04-18 08:22:25 +03:00
parent 8a53e5a925
commit ac737c4ccb

View file

@ -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;