Skip to content

Commit 372f9e8

Browse files
fix: support empty files directories
Signed-off-by: Kate Goldenring <[email protected]>
1 parent e721610 commit 372f9e8

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

crates/loader/src/local.rs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,16 @@ impl LocalLoader {
548548
.with_context(|| format!("Invalid exclude_files glob pattern {pattern:?}"))
549549
})
550550
.collect::<Result<Vec<_>>>()?;
551-
551+
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)