Skip to content
Ensure directory exists, create it recursively if not
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
test
Readme.md
index.js
package.json

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.