Open brancz opened 4 weeks ago
The following pseudocode should work:
use opendal::Operator;
use opendal::services::Gcs;
use fusio_opendal::OpendalFs;
async fn main() -> {
let op = Operator::new(Gcs::default().bucket("test"))?.finish();
let ofs = OpendalFs::from(op);
// Now, use ofs as fusio::Fs!
let f = ofs.open("path", OpenOptions::default()).await?;
...
}
Yes it is a possible way at the moment, we will support this natively in this month
Currently, only s3 is supported.