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.

Implementations§

Create a new BottomUpWalker

Trait Implementations§

Fetch a new page of ObjectEntry Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Applies the Compat adapter by value. Read more
Applies the Compat adapter by shared reference. Read more
Applies the Compat adapter by mutable reference. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more