Skip to content

Commit

Permalink
Merge pull request #3020 from kate-goldenring/fix-empty-files-dir-bug
Browse files Browse the repository at this point in the history
fix: support empty files directories
  • Loading branch information
kate-goldenring authored Feb 24, 2025
2 parents b5931e5 + 65db525 commit d680c89
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions crates/loader/src/local.rs
Original file line number Diff line number Diff line change
Expand Up @@ -549,6 +549,15 @@ impl LocalLoader {
})
.collect::<Result<Vec<_>>>()?;

crate::fs::create_dir_all(dest_root)
.await
.with_context(|| {
format!(
"Failed to create parent directory {}",
quoted_path(&dest_root)
)
})?;

for path_res in paths {
let src = path_res?;
if !src.is_file() {
Expand Down

0 comments on commit d680c89

Please sign in to comment.