prabirshrestha opened a new issue, #3014: URL: https://github.com/apache/incubator-opendal/issues/3014
Repro steps: * Create an empty file - `emptyfile.txt` * Go to https://demo.owncloud.com and login with `demo` as username and password. * Upload the empty file and see it created. Now do the same but with opendal webdav backend and verify in demo.owncloud.com website. The emptyfile doesn't exist as it seems to fail creating empty file. update `let data = b" ";` to contain empty space and it works. ```rust let mut builder = opendal::services::Webdav::default(); builder .endpoint("https://demo.owncloud.com/remote.php/dav/files/demo/") .username("demo") .password("demo") .root("/"); let data = b""; let stream = tokio_util::io::ReaderStream::new(&data[..]); let mut reader = tokio_util::io::StreamReader::new(stream); let op = Operator::new(builder).unwrap().finish(); let mut writer = op .writer_with("/emptyfile.txt") .content_length(data.len() as u64) .await .unwrap(); tokio::io::copy(&mut reader, &mut writer).await.unwrap(); writer.close().await.unwrap(); ``` dependencies: ```toml [dependencies] opendal = "0.39.0" tokio = { version = "1.32.0", features = ["macros", "rt-multi-thread"] } tokio-util = { version = "0.7.8", features = ["io"] } ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
