fix: backup file under root dir

This commit is contained in:
Samuel N Cui
2023-10-21 13:52:43 +08:00
parent ecfce735c6
commit 51f88fe33e
2 changed files with 1 additions and 2 deletions

View File

@@ -176,7 +176,6 @@ const useBackupTargetBrowser = () => {
let splitIdx = path.lastIndexOf("/");
if (splitIdx < 0) {
splitIdx = -1
return;
}
return { base: path.slice(0, splitIdx + 1), path: [path.slice(splitIdx + 1)] } as Source;