Skip to content
Snippets Groups Projects
Commit d4ea343a authored by Jeremy Soller's avatar Jeremy Soller
Browse files

Fix disk scheme path

parent e74975d2
No related branches found
No related tags found
No related merge requests found
......@@ -60,8 +60,9 @@ fn disk_paths(paths: &mut Vec<String>) {
Ok(entries) => for entry_res in entries {
if let Ok(entry) = entry_res {
if let Ok(path) = entry.path().into_os_string().into_string() {
let scheme = path.trim_left_matches(':');
let scheme = path.trim_left_matches(':').trim_matches('/');
if scheme.starts_with("disk") {
println!("redoxfs: found scheme {}", scheme);
schemes.push(format!("{}:", scheme));
}
}
......@@ -77,6 +78,7 @@ fn disk_paths(paths: &mut Vec<String>) {
Ok(entries) => for entry_res in entries {
if let Ok(entry) = entry_res {
if let Ok(path) = entry.path().into_os_string().into_string() {
println!("redoxfs: found path {}", path);
paths.push(path);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment