Skip to content

Commit

Permalink
add initial
Browse files Browse the repository at this point in the history
  • Loading branch information
imWildCat committed Feb 12, 2023
1 parent 4524d3e commit 5a117e2
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/services/webdav/backend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,19 @@ impl Accessor for WebdavBackend {
ma
}

async fn list(&self, path: &str, args: OpList) -> Result<(RpList, ObjectPager)> {
let (_, _) = (path, args);

let empoty_string = AsyncBody::from("".into());

let resp = self.webdav_put(path, None, "application/xml".into(), empoty_string);

Err(Error::new(
ErrorKind::Unsupported,
"operation is not supported",
))
}

async fn create(&self, path: &str, _: OpCreate) -> Result<RpCreate> {
let resp = self
.webdav_put(path, Some(0), None, AsyncBody::Empty)
Expand Down

0 comments on commit 5a117e2

Please sign in to comment.