Fix fs.copy not working with empty dirs (#155)

This commit is contained in:
Plain English 2024-02-20 12:36:19 +00:00 committed by GitHub
parent 347da823b7
commit baa03424d4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -150,6 +150,8 @@ pub async fn copy(
} }
} }
fs::create_dir_all(target).await?;
// FUTURE: Write dirs / files concurrently // FUTURE: Write dirs / files concurrently
// to potentially speed these operations up // to potentially speed these operations up
for (_, dir) in &contents.dirs { for (_, dir) in &contents.dirs {