Merge branch 'main' into P11c
This commit is contained in:
commit
1c88667ade
3 files changed
+22
-5
No files matched your search
@@ -15,7 +15,13 @@ fn names(dir: &Path) -> Vec<String> {
|
||||
if p.is_dir() {
|
||||
walk(base, &p, out);
|
||||
} else {
|
||||
out.push(p.strip_prefix(base).unwrap().to_string_lossy().into_owned());
|
||||
// One spelling on every OS (Windows walks with backslashes).
|
||||
out.push(
|
||||
p.strip_prefix(base)
|
||||
.unwrap()
|
||||
.to_string_lossy()
|
||||
.replace('\\', "/"),
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user