Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Robin Randhawa
redoxfs
Commits
d4ea343a
Commit
d4ea343a
authored
Sep 30, 2017
by
Jeremy Soller
Browse files
Fix disk scheme path
parent
e74975d2
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/bin/mount.rs
View file @
d4ea343a
...
...
@@ -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
);
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment