Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Ensure directory exists, create it recursively if not
JavaScript
Branch: master
Failed to load latest commit information.
test reformat the test code
Readme.md Correct grammar
index.js reformat
package.json reformat

Readme.md

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
Something went wrong with that request. Please try again.