Skip to content

Commit

Permalink
Create directories of parent directory
Browse files Browse the repository at this point in the history
  • Loading branch information
esotericenderman committed Sep 10, 2024
1 parent 6e26be0 commit 292cd35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ fun moveFilesRecursively(sourceDir: File, destDir: File) {
println()

try {
if (!sourceFile.mkdirs()) {
if (!sourceFile.parentFile.mkdirs()) {
println("FAILED to create ${sourceFile.path}")

if (!sourceFile.canWrite()) {
Expand Down

0 comments on commit 292cd35

Please sign in to comment.