You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by GitBox <gi...@apache.org> on 2023/03/17 07:14:33 UTC
[GitHub] [incubator-opendal] Xuanwo created a discussion: idea: Provide an adapter to `std::fs` and `tokio::fs`
GitHub user Xuanwo created a discussion: idea: Provide an adapter to `std::fs` and `tokio::fs`
By providing this adapter, users can use opendal as a drop-in replace of `std::fs` and `tokio::fs`.
```diff
- use tokio::fs
+ use opendal::adapter::fs;
async fn main() {
let _ = fs::try_init();
let f = fs::create("abc").await?;
}
```
But we need to figure how to init our services.
GitHub link: https://github.com/apache/incubator-opendal/discussions/1657
----
This is an automatically sent email for commits@opendal.apache.org.
To unsubscribe, please send an email to: commits-unsubscribe@opendal.apache.org