Skip to content
This repository

Ensure directory exists, create it recursively if not

branch: master


latest commit 067f80344f
Sam X. Xu authored October 04, 2012
Octocat-spinner-32 test reformat the test code June 09, 2012
Octocat-spinner-32 Correct grammar August 29, 2012
Octocat-spinner-32 index.js reformat October 04, 2012
Octocat-spinner-32 package.json reformat October 04, 2012

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


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


$ npm install ensureDir
Something went wrong with that request. Please try again.