shared
utils
string
object
is
extension
js
tracking
string
dom
when
selection
position
iframe
event
scroll
console
node
string
project
fs
console
emptyDir
Type:Function
Status:stable
Since:1.0.0
Platform:node
@blackbyte.sugar.node.fs
Empty a directory (async)
Params
- dir*-String
The directory path to empty
Return
- -Promise
A promise that will be resolved once the directory has been cleaned
Example
import { emptyDir } from '@blackbyte/sugar/fs';
await emptyDir('my/cool/directory').then(() => {
// do something...
});Todo
- testsnormal
Author
- Olivier Bosselolivier.bossel@gmail.comhttps://blackbyte.space