Empty folders should show in vfs

This commit is contained in:
Siddharth Ganesan
2026-04-07 10:22:21 -07:00
parent c31ae46a30
commit a6fbb51478

View File

@@ -500,6 +500,14 @@ export class WorkspaceVFS {
const folderPaths = this.buildFolderPaths(folderRows)
// Register all folders in the VFS so empty folders are discoverable.
for (const { folderId } of folderRows) {
const folderPath = folderPaths.get(folderId)
if (folderPath) {
this.files.set(`workflows/${folderPath}/.folder`, '')
}
}
await Promise.all(
workflowRows.map(async (wf) => {
const safeName = sanitizeName(wf.name)