Skip to content

armgit / fuobe

Public Imported from GitHub
0

The open creative studio on ComfyUI: images, video, 3D and audio on open weights, on your own GPU or the cloud. Camera motions, effects, apps, Cinema, Layers, Image to 3D and an AI agent.

Fixes 5: the AI-Toolkit folder check no longer makes Turbopack trace the whole project

Claude5404d20bfb0a
diff --git a/src/server/training.ts b/src/server/training.ts
index 1c5be9e1..5d59446a 100644
--- a/src/server/training.ts
+++ b/src/server/training.ts
@@ -355,10 +355,11 @@ function testDatasetDir(): { ok: boolean; detail: string } {
const root = datasetRoot();
if (!path.isAbsolute(root)) return { ok: false, detail: "Use a full path, like /mnt/shared/datasets" };
let at = root;
- while (!fs.existsSync(at) && path.dirname(at) !== at) at = path.dirname(at);
+ // A folder the person typed, not part of the app: keep Turbopack from tracing the whole project for it.
+ while (!fs.existsSync(/*turbopackIgnore: true*/ at) && path.dirname(at) !== at) at = path.dirname(at);
try {
- if (!fs.statSync(at).isDirectory()) throw new Error(`${at} is a file`);
- fs.accessSync(at, fs.constants.W_OK);
+ if (!fs.statSync(/*turbopackIgnore: true*/ at).isDirectory()) throw new Error(`${at} is a file`);
+ fs.accessSync(/*turbopackIgnore: true*/ at, fs.constants.W_OK);
} catch (e) {
return { ok: false, detail: `Fuobe can't write to ${root} (${(e as NodeJS.ErrnoException).code ?? (e as Error).message})` };
}