Skip to content

Commit

Permalink
Fixed FileSystem createdir when parent_inode is an ArcDirectory (wasm…
Browse files Browse the repository at this point in the history
  • Loading branch information
ptitSeb authored Apr 3, 2023
1 parent 5a8e1e3 commit 4a31830
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/vfs/src/mem_fs/filesystem.rs
Original file line number Diff line number Diff line change
Expand Up @@ -605,8 +605,8 @@ impl FileSystemInner {
Some(Node::Directory(DirectoryNode { .. })) => {
Ok(InodeResolution::Found(inode_of_parent))
}
Some(Node::ArcDirectory(ArcDirectoryNode { .. })) => {
Ok(InodeResolution::Found(inode_of_parent))
Some(Node::ArcDirectory(ArcDirectoryNode { fs, path, .. })) => {
Ok(InodeResolution::Redirect(fs.clone(), path.clone()))
}
_ => Err(FsError::BaseNotDirectory),
}
Expand Down

0 comments on commit 4a31830

Please sign in to comment.