TmpDirHelper
Less than 1 minute
Helper interface for managing a temporary directory.
Properties
Property | Type | Description |
---|---|---|
| the path to the temporary directory |
Methods
clean()
clean(): Promise<void>
check if a path exists in the temporary directory
Returns
Promise
<void
>
cleaned()
cleaned(): boolean
check if a path exists in the temporary directory
Returns
boolean
path()
path(...args): string
create a absolute path relative to the temporary directory
Parameters
Parameter | Type |
---|---|
... |
|
Returns
string
track()
track(): void
track the temporary directory for automatic cleanup on process exit
Returns
void
tracked()
tracked(): boolean
check if the temporary directory is tracked
Returns
boolean
untrack()
untrack(): void
untrack the temporary directory
Returns
void