aboutsummaryrefslogtreecommitdiffhomepage
path: root/libs/hbb_common/src/fs.rs
diff options
context:
space:
mode:
Diffstat (limited to 'libs/hbb_common/src/fs.rs')
-rw-r--r--libs/hbb_common/src/fs.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/libs/hbb_common/src/fs.rs b/libs/hbb_common/src/fs.rs
index 475f4df..69cd348 100644
--- a/libs/hbb_common/src/fs.rs
+++ b/libs/hbb_common/src/fs.rs
@@ -558,3 +558,11 @@ pub fn create_dir(dir: &str) -> ResultType<()> {
std::fs::create_dir_all(get_path(dir))?;
Ok(())
}
+
+#[inline]
+pub fn transform_windows_path(entries: &mut Vec<FileEntry>) {
+ for entry in entries {
+ entry.name = entry.name.replace("\\", "/");
+ }
+}
+