Create arbitrary directory structures.
Install
npm install directory-structure
Usage
var mkdirs =
mkdirs(root, subdirs, cb)
root
must existsubdirs
is an array of subdirectories to create belowroot
cb
is the callbackfunction (err) {}
(err
is null if ok)
Eg:
Results in:
/Users/bengourley
└─┬ foo
├ bar
└ baz