Skip to content

Commit

Permalink
Fix fs.copy not working with empty dirs (#155)
Browse files Browse the repository at this point in the history
  • Loading branch information
plainenglishh authored Feb 20, 2024
1 parent 347da82 commit baa0342
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lune/builtins/fs/copy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,8 @@ pub async fn copy(
}
}

fs::create_dir_all(target).await?;

// FUTURE: Write dirs / files concurrently
// to potentially speed these operations up
for (_, dir) in &contents.dirs {
Expand Down

0 comments on commit baa0342

Please sign in to comment.