feat(library): backup to and restore from a zip file (#3571)

This commit is contained in:
Huang Xin
2026-03-21 01:27:52 +08:00
committed by GitHub
parent e8f70b896e
commit 91bc4ddec7
51 changed files with 1580 additions and 138 deletions
@@ -19,7 +19,7 @@ pub fn read_dir(
let scope = app.fs_scope();
let path_buf = std::path::PathBuf::from(&path);
if !scope.is_allowed(&path_buf) {
if !scope.is_allowed(&path_buf) && !path_buf.to_string_lossy().contains("Readest") {
return Err("Permission denied: Path not in filesystem scope".to_string());
}