mirror of
https://github.com/clash-verge-rev/clash-verge-rev
synced 2025-05-05 14:03:44 +08:00
fix: webdav list interface compatibility issue
This commit is contained in:
parent
7e5d6ef9b6
commit
415b4879f1
@ -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