fix: correctly detect files and folders from R2

This commit is contained in:
James Murdza 2024-08-18 11:09:19 -07:00
parent c674c0cab6
commit 6b761cc490

View File

@ -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) {