webdav-handler-rs
webdav-handler-rs copied to clipboard
How to handle PUT?
Hi there! First of all, thanks for your crate!
I'm making my own FS for my project. How can I handle PUT
with this trait ?
Basically that trait (and the other ones in fs
) mirror the functions from std::fs
in the Rust standard library. PUT
is open + write, so you need to implement DavFileSystem::open
. But open
returns a DavFile
, so you need to implement that as well.
Thanks for answer! I still don't get it.
So, I need to upload 1 file. How many times will be write_bytes
/ write_buf
called?