diff --git a/ableos/src/filesystem/vfs.rs b/ableos/src/filesystem/vfs.rs index e1cc3f94..a7e22032 100644 --- a/ableos/src/filesystem/vfs.rs +++ b/ableos/src/filesystem/vfs.rs @@ -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();