Skip to content

Commit

Permalink
add webdav list_response parser
Browse files Browse the repository at this point in the history
  • Loading branch information
imWildCat committed Feb 12, 2023
1 parent a3f9b67 commit 31321b1
Show file tree
Hide file tree
Showing 2 changed files with 316 additions and 54 deletions.
18 changes: 9 additions & 9 deletions src/services/webdav/backend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -269,18 +269,18 @@ impl Accessor for WebdavBackend {
ma
}

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

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

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

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

async fn create(&self, path: &str, _: OpCreate) -> Result<RpCreate> {
let resp = self
Expand Down
Loading

0 comments on commit 31321b1

Please sign in to comment.