Empties all contents of a directory at the specified path. If the directory doesn't exist, it will be created.
The absolute path of the directory to empty.
A promise that resolves to an AsyncVoidIOResult indicating success or failure.
AsyncVoidIOResult
1.0.9
await emptyDir('/path/to/directory'); Copy
await emptyDir('/path/to/directory');
Empties all contents of a directory at the specified path. If the directory doesn't exist, it will be created.