1.0.0 • Published 8 years ago

mkpath v1.0.0

Weekly downloads
443,159
License
MIT
Repository
github
Last release
8 years ago

mkpath

Make all directories in a path, like mkdir -p.

How to use

var mkpath = require('mkpath');

mkpath('red/green/violet', function (err) {
    if (err) throw err;
    console.log('Directory structure red/green/violet created');
});

mkpath.sync('/tmp/blue/orange', 0700);

mkpath(path, mode = 0777 & (~process.umask()),)

Create all directories that don't exist in path with permissions mode. When finished, callback(err) fires with the error, if any.

mkpath.sync(path, mode = 0777 & (~process.umask()));

Synchronous version of the same. Throws error, if any.

License

This software is released under the MIT license.

cordova-internal-plugins-group-storageoutline.jsjsec-custom-plugininnomobile-branch-cordova-sdknightwatch-benchufs-react-doc@everything-registry/sub-chunk-2181wav-audio-spritezerverzip-iteratorzetta-translator@genet/negatronxlfpackageyoshi-branch-cordova-sdkurtilvue-dev-clonefluig_dev_easy@zalaris/ionic-plugin-deeplinksflowdock-deploy-notifylocalize-gsheettiendvd-logagenttransifextranslationtottys-projectthe_helper_packagethe_helper_packagestangtemplatelescribetar-iteratortapptic-spreadsheet-localizeteaglasssyncytest-cordova-universal-links-plugintestarmada-midway-utilswiftesttypesheettv-toolkit-clits-jsonschema-genfairmanager-cordova-plugin-universal-linksfast-extractfetch-json-cachedrupal-backstop-generatordripcapdtweb-digitizer-appdtweb-midas-app@gedysintraware/cordova-universal-links-plugin@hubject/nightwatchembed-support@innomobile-native/branch-io@infinitebrahmanuniverse/nolb-mkgoogle-fonts-managergrunt-mylessgrunt-optimusjsfrontrockets-builder@metaclinic/dev-testingfs-generate@mailbutler/cordova-universal-links-plugin@mydaco/mydaco-scripts@nagygyula21/ionic-plugin-deeplinksgd-cliget-remoteghost-to-htmlgithub-deploy-notifygitter-archive-cliextract-base-iteratorextract-css-module-classnames-loaderelectron-deplugideatica-unzipinstallfontinstallfont-electron@retailmenot/grunt-hooksionic-plugin-deeplinksionic-plugin-deeplinks-cc@panstav/git-ignoregy-plugin-magiclinkiconceptimport-depsinialitebuilder@sa0001/coffee-cache@here/harp-atlas-tools@here/harp-fontcatalog-generatoremc-izakengist@jatahworx/bad-fs-services@jeffrygonzalez/ng2templatesesdoc-rst-pluginengineerapart-branch-cordova-sdkhaplohandlebars-bundle@patched/cordova-universal-links-plugingulp-css-processorgulp-css-rebasegulp-prettybellygulp-process-file-loggulp-true-rebasegulp-tr-revjs-api-generator@sematext/logagent@eurus/cordova-universal-links-plugin
1.0.0

8 years ago

0.1.0

11 years ago