ensureDir

Ensures the directory exists, creating it recursively if not

npm install ensureDir
9 downloads in the last day
101 downloads in the last week
382 downloads in the last month

A utility for node, ensures the directory exists, creating it recursively if not.

Example

ensureDir('./temp/path/to/nonexist/dir/', 0755, function (err) {
    if (err) return next(err);
    // your code here!
});

Installation

$ npm install ensureDir
npm loves you