fix(desktop): removed projects

This commit is contained in:
Adam 2025-12-19 14:38:25 -06:00
parent 7664453f94
commit 742cf10dee
No known key found for this signature in database
GPG key ID: 9CB48779AF150E75
4 changed files with 16 additions and 11 deletions

View file

@ -1,5 +1,4 @@
import { BusEvent } from "@/bus/bus-event"
import { Bus } from "@/bus"
import z from "zod"
import { $ } from "bun"
import type { BunFile } from "bun"
@ -290,9 +289,11 @@ export namespace File {
}
const resolved = dir ? path.join(Instance.directory, dir) : Instance.directory
const nodes: Node[] = []
for (const entry of await fs.promises.readdir(resolved, {
withFileTypes: true,
})) {
for (const entry of await fs.promises
.readdir(resolved, {
withFileTypes: true,
})
.catch(() => [])) {
if (exclude.includes(entry.name)) continue
const fullPath = path.join(resolved, entry.name)
const relativePath = path.relative(Instance.directory, fullPath)