fix: correctly detect files and folders from R2
This commit is contained in:
parent
c674c0cab6
commit
6b761cc490
@ -55,7 +55,7 @@ const processFiles = async (paths: string[], id: string) => {
|
||||
|
||||
for (let i = 0; i < parts.length; i++) {
|
||||
const part = parts[i];
|
||||
const isFile = i === parts.length - 1 && part.includes(".");
|
||||
const isFile = i === parts.length - 1 && part.length;
|
||||
const existing = current.children.find((child) => child.name === part);
|
||||
|
||||
if (existing) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user