GitHub user crwen closed a discussion: Can root path be deleted?

If root is `/a/b/`,`b/` can be deleted by using `Operator::delete("/")`. Does 
this make sense?

```rust
#[tokio::test]
async fn delete_root() {
    // set root to "a/b/"
    let builder = FsConfig::default().into_builder().root("/a/b/");

    let op = Operator::new(builder).unwrap().finish();

    op.delete("/").await.unwrap(); // b will be deteleted
}
```

---
**Mailing list thread:** 
https://lists.apache.org/thread/t30l2d3yh2gpfh69f9k658lhmbmd505h


GitHub link: https://github.com/apache/opendal/discussions/7030

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]

Reply via email to