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(): booleancheck if a path exists in the temporary directory
Returns
boolean
path()
path(...args): stringcreate a absolute path relative to the temporary directory
Parameters
| Parameter | Type |
|---|---|
... |
|
Returns
string
track()
track(): voidtrack the temporary directory for automatic cleanup on process exit
Returns
void
tracked()
tracked(): booleancheck if the temporary directory is tracked
Returns
boolean
untrack()
untrack(): voiduntrack the temporary directory
Returns
void