Skip to content

Commit d680c89

Browse files
Merge pull request #3020 from kate-goldenring/fix-empty-files-dir-bug
fix: support empty files directories
2 parents b5931e5 + 65db525 commit d680c89

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

crates/loader/src/local.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -549,6 +549,15 @@ impl LocalLoader {
549549
})
550550
.collect::<Result<Vec<_>>>()?;
551551

552+
crate::fs::create_dir_all(dest_root)
553+
.await
554+
.with_context(|| {
555+
format!(
556+
"Failed to create parent directory {}",
557+
quoted_path(&dest_root)
558+
)
559+
})?;
560+
552561
for path_res in paths {
553562
let src = path_res?;
554563
if !src.is_file() {

0 commit comments

Comments
 (0)