Struct opendal::raw::BottomUpWalker
source · pub struct BottomUpWalker { /* private fields */ }
Expand description
BottomUpWalker will walk dir in bottom up way:
- List nested dir first
- Go back into parent dirs one by one
Given the following file tree:
.
├── dir_x/
│ ├── dir_y/
│ │ ├── dir_z/
│ │ └── file_c
│ └── file_b
└── file_a
BottomUpWalker will output entries like:
dir_x/dir_y/dir_z/file_c
dir_x/dir_y/dir_z/
dir_x/dir_y/file_b
dir_x/dir_y/
dir_x/file_a
dir_x/
Note
There is no guarantee about the order between files and dirs at the same level. We only make sure the nested dirs will show up before parent dirs.
Especially, for storage services that can’t return dirs first, BottomUpWalker may output parent dirs’ files before nested dirs, this is expected because files always output directly while listing.