Struct opendal::raw::TopDownWalker
source · pub struct TopDownWalker { /* private fields */ }
Expand description
TopDownWalker will walk dir in top down way:
- List current dir first
- Go into nested dirs one by one
Given the following file tree:
.
├── dir_x/
│ ├── dir_y/
│ │ ├── dir_z/
│ │ └── file_c
│ └── file_b
└── file_a
TopDownWalker will output entries like:
dir_x/
dir_x/file_a
dir_x/dir_y/
dir_x/dir_y/file_b
dir_x/dir_y/dir_z/
dir_x/dir_y/dir_z/file_c
Note
There is no guarantee about the order between files and dirs at the same level. We only make sure the parent dirs will show up before nest dirs.
Implementations§
source§impl TopDownWalker
impl TopDownWalker
sourcepub fn new(acc: FusedAccessor, path: &str) -> Self
pub fn new(acc: FusedAccessor, path: &str) -> Self
Create a new TopDownWalker