Skip to content

Commit

Permalink
Fixes FileOperations#copy for possible duplicate directories. (Google…
Browse files Browse the repository at this point in the history
  • Loading branch information
coollog authored Jun 28, 2018
1 parent a5c099e commit 508bcda
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public static void copy(ImmutableList<Path> sourceFiles, Path destDir) throws IO
// Creates the same path in the destDir.
Path destPath = destDir.resolve(sourceFile.getParent().relativize(path));
if (Files.isDirectory(path)) {
Files.createDirectory(destPath);
Files.createDirectories(destPath);
} else {
Files.copy(path, destPath);
}
Expand Down

0 comments on commit 508bcda

Please sign in to comment.