Skip to content

Commit 508bcda

Browse files
authored
Fixes FileOperations#copy for possible duplicate directories. (GoogleContainerTools#459)
1 parent a5c099e commit 508bcda

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎jib-core/src/main/java/com/google/cloud/tools/jib/filesystem/FileOperations.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public static void copy(ImmutableList<Path> sourceFiles, Path destDir) throws IO
3838
// Creates the same path in the destDir.
3939
Path destPath = destDir.resolve(sourceFile.getParent().relativize(path));
4040
if (Files.isDirectory(path)) {
41-
Files.createDirectory(destPath);
41+
Files.createDirectories(destPath);
4242
} else {
4343
Files.copy(path, destPath);
4444
}

0 commit comments

Comments
 (0)