fix: root path check always return false (No marker found)
This commit is contained in:
parent
35195f78bf
commit
e020c0d6c9
1 changed files with 1 additions and 0 deletions
|
|
@ -168,6 +168,7 @@ async function listFile(path: string[]) {
|
|||
}
|
||||
|
||||
async function checkPathExist(bucket: string, path: string) {
|
||||
if (path.split("/").filter(Boolean).length === 0) return true; // root does not contain any mark
|
||||
return await checkFileExist(bucket, `${path}/.keep`);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue