feat(vault): export portable notes with missing attachment reports

This commit is contained in:
eezd committed 2026-10-25 13:21:09 +08:00
1 parent f7584d1089
commit 39dfe8b285
3 files changed
+192

No files matched your search

+3
View File
@@ -137,6 +137,9 @@ func (v *Vault) Import(ctx context.Context, dir, folder string, files []ImportFi
return result, ErrTooLarge
}
for _, f := range z.File {
if f.Name == ".rawmark-export/missing-assets.json" {
continue
} // 本程序笔记导出的缺失附件报告,不作为笔记导入。
if !f.Mode().IsRegular() && !f.Mode().IsDir() {
return result, fmt.Errorf("%w:ZIP 不允许符号链接或特殊文件", ErrInvalidImport)
}