mirror of
https://github.com/clash-verge-rev/clash-verge-rev
synced 2025-05-05 04:33:45 +08:00
fix: webdav list interface compatibility issue
This commit is contained in:
parent
67bb242778
commit
ae181f6835
@ -94,8 +94,9 @@ impl WebDavClient {
|
|||||||
|
|
||||||
pub async fn list(&self) -> Result<Vec<ListFile>, Error> {
|
pub async fn list(&self) -> Result<Vec<ListFile>, Error> {
|
||||||
let client = self.get_client().await?;
|
let client = self.get_client().await?;
|
||||||
|
let path = format!("{}/", dirs::BACKUP_DIR);
|
||||||
let files = client
|
let files = client
|
||||||
.list(dirs::BACKUP_DIR, reqwest_dav::Depth::Number(1))
|
.list(path.as_str(), reqwest_dav::Depth::Number(1))
|
||||||
.await?;
|
.await?;
|
||||||
let mut final_files = Vec::new();
|
let mut final_files = Vec::new();
|
||||||
for file in files {
|
for file in files {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user