mkdtempDisposableSync
mkdtempDisposableSync(
this,prefix,options?):object
Defined in: src/node/sync.ts:647
Returns a disposable object whose path property holds the created directory path.
When the object is disposed, the directory and its contents will be removed if it still exists.
If the directory cannot be deleted, disposal will throw an error.
The object has a remove() method which will perform the same task.
Parameters
Section titled “Parameters”unknown
prefix
Section titled “prefix”PathLike
options?
Section titled “options?”BufferEncodingOption | EncodingOption
Returns
Section titled “Returns”object
path:
string
[dispose]()
Section titled “[dispose]()”[dispose]():
void
Returns
Section titled “Returns”void
remove()
Section titled “remove()”remove():
void
Returns
Section titled “Returns”void
Add satisfies and maybe change return type once @types/node adds this.