Extends Node FS lib
const fs = require('fsxtra');
-
Includes all fs lib functions.
-
All fs functions with an alternate 'Sync' method will return promises instead of requiring callbacks
.mktree(
<filepath>
)
-
Returns Promise
-
Accepts full filepath, creating as many of the directories in the filepath as needed.
.mktreeSync(
<filepath>
)
- Synchronous version of
.mktree()
Add rmtree & rmtreeSync methods - include 'force' option for removing files in dirs.