From c5c94fb3e6787dbad7ae284dd0bc9772ab00d6ac Mon Sep 17 00:00:00 2001 From: aumetra Date: Sat, 9 Dec 2023 21:13:48 +0100 Subject: [PATCH] delete directory before copy --- kitsune/build.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kitsune/build.rs b/kitsune/build.rs index c42d33c73..6081c42ac 100644 --- a/kitsune/build.rs +++ b/kitsune/build.rs @@ -25,6 +25,8 @@ fn main() -> Result<(), Box> { let assets_path = Utf8PathBuf::from("./assets").canonicalize_utf8()?; let prepared_assets_path = Utf8PathBuf::from("./assets-dist").canonicalize_utf8()?; + dir::remove(&prepared_assets_path)?; + let copy_options = CopyOptions { overwrite: true, content_only: true,