VFS: fix little oopsie

master
TheOddGarlic 2022-08-07 20:01:44 +03:00
parent f67e9b2372
commit dc5b9f08f4
1 changed files with 1 additions and 1 deletions

View File

@ -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();