mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-11-17 17:32:15 +08:00
feat: local backup (#5054)
* feat: local backup * refactor(backup): make local backup helpers synchronous and clean up redundant checks - Converted local backup helpers to synchronous functions to remove unused async warnings and align command signatures. - Updated list/delete/export commands to call the sync feature functions directly without awaits while preserving behavior. - Simplified destination directory creation to always ensure parent folders exist without redundant checks, satisfying Clippy.
This commit is contained in:
Vendored
+7
@@ -870,6 +870,13 @@ interface IWebDavFile {
|
||||
tag: string;
|
||||
}
|
||||
|
||||
interface ILocalBackupFile {
|
||||
filename: string;
|
||||
path: string;
|
||||
last_modified: string;
|
||||
content_length: number;
|
||||
}
|
||||
|
||||
interface IWebDavConfig {
|
||||
url: string;
|
||||
username: string;
|
||||
|
||||
Reference in New Issue
Block a user