Struct opendal::BatchOperator
source · pub struct BatchOperator { /* private fields */ }
Expand description
BatchOperator is used to take batch operations like walk_dir and remove_all, should
be constructed by Operator::batch()
.
TODO
We will support batch operators between two different operators like copy and move.
Implementations§
source§impl BatchOperator
impl BatchOperator
sourcepub async fn remove_all(&self, path: &str) -> Result<()>
pub async fn remove_all(&self, path: &str) -> Result<()>
Remove the path and all nested dirs and files recursively.
Use this function in cautions to avoid unexpected data loss.
Trait Implementations§
source§impl Clone for BatchOperator
impl Clone for BatchOperator
source§fn clone(&self) -> BatchOperator
fn clone(&self) -> BatchOperator
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more