The resulting Promise holds an async-disposable object whose path property holds the created directory path.
When the object is disposed, the directory and its contents will be removed asynchronously if it still exists.
If the directory cannot be deleted, disposal will throw an error.
The object has an async remove() method which will perform the same task.
The resulting Promise holds an async-disposable object whose
path
property holds the created directory path. When the object is disposed, the directory and its contents will be removed asynchronously if it still exists. If the directory cannot be deleted, disposal will throw an error. The object has an asyncremove()
method which will perform the same task.