directory-structure
v0.0.2
Published
Create an empty directory structure
Readme
Create arbitrary directory structures.
Install
npm install directory-structureUsage
var mkdirs = require('directory-structure')mkdirs(root, subdirs, cb)
rootmust existsubdirsis an array of subdirectories to create belowrootcbis the callbackfunction (err) {}(erris null if ok)
Eg:
mkdirs('/Users/bengourley', ['foo', 'bar', 'baz'], function (err) {
if (err) throw err
console.log('done!')
})Results in:
/Users/bengourley
└─┬ foo
├ bar
└ baz
