https://opendal.apache.org/ logo
And if that is the case, how am I
# general
j
And if that is the case, how am I supposed to read a file that doesnt exist in the root? Operators are truly supposed to be so short lived that I should dispose of one and create a new one for every operation? For example if I was writing a file larger than memory from local to s3 I would need several operators right?
x
> And if that is the case, how am I supposed to read a file that doesnt exist in the root? I didn't get this question. If you want to read files from different place, you can set root to
/
. > Operators are truly supposed to be so short lived that I should dispose of one and create a new one for every operation? It depends on your own use case. We encourage users to reuse operator. > For example if I was writing a file larger than memory from local to s3 I would need several operators right? I didn't get the connection to file size. Could you elaborate? it should be simple like (I use rust here, but it should easy to map to python):
Copy code
rust
let mut r = fs_op.reader("path").await?;
let mut w = s3_op.writer(path).await?;
io::copy(&mut w, &mut r).await?;
j
If I have some extremely large file on local disk I want to write to S3 I suppose is my question, how would you recommend doing that?
yeah 2 operators, okay. Thank you!