Skip to content

Commit 216b756

Browse files
committed
Copying a directory keeping the original directory
1 parent ade01d1 commit 216b756

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/main/java/com/kpelykh/docker/client/DockerClient.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -724,7 +724,7 @@ public ClientResponse build(File dockerFolder, String tag, boolean noCache) thro
724724
throw new DockerException(String.format("Source file %s doesnt' exist", src));
725725
}
726726
if (src.isDirectory()) {
727-
FileUtils.copyDirectory(src, tmpDockerContextFolder);
727+
FileUtils.copyDirectoryToDirectory(src, tmpDockerContextFolder);
728728
} else {
729729
FileUtils.copyFileToDirectory(src, tmpDockerContextFolder);
730730
}

0 commit comments

Comments
 (0)