mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2024-11-16 03:32:36 +08:00
fix: call parameter error
This commit is contained in:
parent
d0f907f349
commit
b9bb79b4dc
|
@ -84,7 +84,7 @@ impl WebDavClient {
|
||||||
pub async fn download(&self, filename: String, storage_path: PathBuf) -> Result<(), Error> {
|
pub async fn download(&self, filename: String, storage_path: PathBuf) -> Result<(), Error> {
|
||||||
let client = self.get_client().await?;
|
let client = self.get_client().await?;
|
||||||
let path = format!("{}/{}", dirs::BACKUP_DIR, filename);
|
let path = format!("{}/{}", dirs::BACKUP_DIR, filename);
|
||||||
let response = client.get(&path.as_str()).await?;
|
let response = client.get(path.as_str()).await?;
|
||||||
let content = response.bytes().await?;
|
let content = response.bytes().await?;
|
||||||
fs::write(&storage_path, &content)?;
|
fs::write(&storage_path, &content)?;
|
||||||
Ok(())
|
Ok(())
|
||||||
|
|
Loading…
Reference in New Issue
Block a user