fix(platform): normalize native paths for storage and backup validation

This commit is contained in:
eezd committed 2026-10-27 15:03:57 +08:00
1 parent bea53ce3c8
commit 1a8f70ca13
9 files changed
+120 -8

No files matched your search

+5 -1
View File
@@ -54,7 +54,11 @@ func scanStorage(ctx context.Context, dataDir, vaultDir string) (storageUsage, e
if err != nil {
return usage, err
}
vaultRoot, err := filepath.Abs(vaultDir)
vaultRoot, err := filepath.EvalSymlinks(vaultDir)
if err != nil {
return usage, err
}
vaultRoot, err = filepath.Abs(vaultRoot)
if err != nil {
return usage, err
}