Skip to content

Commit

Permalink
Merge pull request #26 from Scille/fix-memfs-read-directory
Browse files Browse the repository at this point in the history
Fix: `memfs` `read_directory`
  • Loading branch information
TimeEngineer committed Oct 4, 2023
2 parents b1310fc + f572c67 commit d768c7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/memfs/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -658,7 +658,7 @@ impl FileSystemContext for MemFs {
Obj::Folder(folder_obj) => {
let mut res_entries = vec![];

if folder_obj.path != self.root_path {
if folder_obj.path != self.root_path && marker.is_none() {
let parent_path = folder_obj.path.parent().unwrap();
res_entries.push((u16cstr!(".").to_owned(), folder_obj.info));
let parent_obj = entries[parent_path].lock().unwrap();
Expand Down

0 comments on commit d768c7e

Please sign in to comment.