happy-opfs • Docs
happy-opfs / emptyDir
function emptyDir(dirPath): AsyncVoidIOResult
Empties the contents of a directory at the specified path.
Parameter | Type | Description |
---|---|---|
dirPath |
string |
The path of the directory to empty. |
AsyncVoidIOResult
A promise that resolves to an AsyncIOResult
indicating whether the directory was successfully emptied.