VFS: fix little oopsie
This commit is contained in:
parent
0cc1aaa64f
commit
8e487e1697
|
@ -54,7 +54,7 @@ impl VirtualFileSystem {
|
|||
Err(FsError::NotAbsolute)?;
|
||||
}
|
||||
|
||||
let mut components = path.split_terminator(path);
|
||||
let mut components = path.split_terminator('/');
|
||||
components.next(); // throw the empty string caused by the root /
|
||||
// will be initialised beforehand so okay to unwrap
|
||||
let mut resolved_node = self.root_handle.unwrap();
|
||||
|
|
Loading…
Reference in a new issue