fix(platform): normalize native paths for storage and backup validation
This commit is contained in:
1 parent
bea53ce3c8
commit
1a8f70ca13
9 files changed
+120
-8
No files matched your search
@@ -18,7 +18,7 @@ func TestAvailableBytes(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestLocalPath(t *testing.T) {
|
||||
for _, name := range []string{"notes/中文 note.md", "vault/.rawmark/tree-icons.json"} {
|
||||
for _, name := range []string{"notes/中文 note.md", "vault/.rawmark/tree-icons.json", "vault/.rawmark/trash/id/meta.json"} {
|
||||
if !IsLocalPath(name) {
|
||||
t.Fatalf("valid path rejected: %s", name)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user