From d4ea343a3930bdb76ac5412f0f113a84c9328e3c Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Sat, 30 Sep 2017 20:34:34 -0600 Subject: [PATCH] Fix disk scheme path --- src/bin/mount.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/bin/mount.rs b/src/bin/mount.rs index 8ec6910631..88d160f14f 100644 --- a/src/bin/mount.rs +++ b/src/bin/mount.rs @@ -60,8 +60,9 @@ fn disk_paths(paths: &mut Vec) { 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) { 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); } }