emptyDir

Type:Function
Status:stable
Since:1.0.0
Platform:node
@blackbyte.sugar.node.fs

Empty a directory (async)

Params

  1. dir*-String

    The directory path to empty

Return

  1. -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