mirror of
https://gitee.com/myxzgzs/boyue_jnpf.git
synced 2025-08-08 15:22:43 +08:00
17 lines
426 B
Markdown
17 lines
426 B
Markdown
![]() |
## temp-file
|
||
|
|
||
|
```typescript
|
||
|
export function getTempName(prefix?: string | null | undefined): string;
|
||
|
|
||
|
export class TmpDir {
|
||
|
getTempDir(suffix?: string): Promise<string>;
|
||
|
|
||
|
createTempDir(suffix?: string): Promise<string>;
|
||
|
|
||
|
getTempFile(suffix: string, isDir?: boolean, disposer?: ((file: string) => Promise<void>) | null): Promise<string>;
|
||
|
|
||
|
cleanupSync(): void;
|
||
|
|
||
|
cleanup(): Promise<any>;
|
||
|
}
|
||
|
```
|