Skip to content

Commit

Permalink
Fix: memfs read_directory
Browse files Browse the repository at this point in the history
  • Loading branch information
TimeEngineer committed Oct 4, 2023
1 parent b1310fc commit f572c67
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 f572c67

Please sign in to comment.