From baa03424d469d7b9eeb4efcb3bc4384faf2abc0e Mon Sep 17 00:00:00 2001 From: Plain English <20248750+plainenglishh@users.noreply.github.com> Date: Tue, 20 Feb 2024 12:36:19 +0000 Subject: [PATCH] Fix fs.copy not working with empty dirs (#155) --- src/lune/builtins/fs/copy.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lune/builtins/fs/copy.rs b/src/lune/builtins/fs/copy.rs index 10c77fc..bcad01f 100644 --- a/src/lune/builtins/fs/copy.rs +++ b/src/lune/builtins/fs/copy.rs @@ -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 {