mirror of
https://github.com/hanzoai/studio-desktop.git
synced 2026-10-30 18:21:16 +00:00
- Replace all ComfyUI references with Hanzo Studio - Update comfy.org URLs to hanzo.ai/studio.hanzo.ai - Change comfyanonymous to hanzoai - Update Comfy-Org to hanzo-studio - Rename files and directories - Update package names and configurations - Update documentation and README files This is a comprehensive rebranding to align with Hanzo AI's product suite and company identity.
19 lines
510 B
TypeScript
19 lines
510 B
TypeScript
import { rm } from 'node:fs/promises';
|
|
import { tmpdir } from 'node:os';
|
|
import path from 'node:path';
|
|
import { addRandomSuffix, pathExists } from 'tests/shared/utils';
|
|
|
|
export class TempDirectory implements AsyncDisposable {
|
|
readonly path: string = path.join(tmpdir(), addRandomSuffix('Hanzo Studio'));
|
|
|
|
toString() {
|
|
return this.path;
|
|
}
|
|
|
|
async [Symbol.asyncDispose](): Promise<void> {
|
|
if (await pathExists(this.path)) {
|
|
await rm(this.path, { recursive: true, force: true });
|
|
}
|
|
}
|
|
}
|