From 8872a1739bb49bdd79fd1f126be901959f2770bf Mon Sep 17 00:00:00 2001 From: liquidev Date: Mon, 4 Sep 2023 11:17:51 +0200 Subject: [PATCH] fix for paths on Windows --- crates/treehouse/src/cli/generate.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/treehouse/src/cli/generate.rs b/crates/treehouse/src/cli/generate.rs index da3998a..56f7eb4 100644 --- a/crates/treehouse/src/cli/generate.rs +++ b/crates/treehouse/src/cli/generate.rs @@ -136,7 +136,7 @@ impl Generator { continue; } }; - let tree_path = tree_path.with_extension("").to_string_lossy().into_owned(); + let tree_path = tree_path.with_extension("").to_string_lossy().replace('\\', "/"); let file_id = treehouse.add_file(utf8_filename.into_owned(), Some(tree_path.clone()), source);