destination was file, not folder
This commit is contained in:
parent
f0223ed727
commit
7241986b99
|
@ -23,11 +23,12 @@ class FileCopier {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void createDestinationFolderIfApply(Path destination) throws IOException {
|
private void createDestinationFolderIfApply(Path destinationFile) throws IOException {
|
||||||
if (isTemporaryDestination(destination) && !Files.exists(destination)) {
|
var destinationFolder = destinationFile.getParent();
|
||||||
System.out.printf("destination folder %s will be created", destination);
|
if (isTemporaryDestination(destinationFolder) && !Files.exists(destinationFolder)) {
|
||||||
|
System.out.printf("destination folder %s will be created", destinationFolder);
|
||||||
if (ConfigLoader.isDisabled(TEST_MODE))
|
if (ConfigLoader.isDisabled(TEST_MODE))
|
||||||
Files.createDirectory(destination);
|
Files.createDirectories(destinationFile);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue