1.0.0 • Published 10 years ago

mkpath v1.0.0

Weekly downloads
443,159
License
MIT
Repository
github
Last release
10 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-2181tapptic-spreadsheet-localizetangtar-iteratorsyncyteaglassxlfpackagetelescribetemplasportihome-plugin-deeplinkssplittablespastatictestarmada-midway-utilswiftestthe_helper_packagethe_helper_packagesvue-dev-clone@cremeta/harp-atlas-tools@colorix/localize-google-spreadsheet@deplug/package-install@prageethsilva/cordova-universal-links-plugin@prageeths/cordova-universal-links-pluginjackpaperjec-glasscat-commandsitdar-branch-cordova-sdkjquery-auto-builderjs-api-generatorkarma-tfs-reporterionic-plugin-deeplinks-ccionic-plugin-deeplinksjasmine-tfs-reporterjson2propertylcc_templates@zalaris/ionic-plugin-deeplinksspaceprots-jsonschema-gentest-cordova-universal-links-plugintypesheettottys-projecttransifextranslationtiendvd-logagenttv-toolkit-cli@ariofrio/cordova-plugin-universal-links@bigfunger/decompress-zip@cdevine49/react-numeric-input3vot-cli3vot-cloud@ddn/decompress-zip@dhigroup/karma-vsts-reporter@danielkalen/nightwatchyoshi-branch-cordova-sdkzetta-translatorwav-audio-spriteurtilzerverzip-iterator@hubject/nightwatch@gedysintraware/cordova-universal-links-plugin@eurus/cordova-universal-links-plugin@eventmobi/branch-cordova-sdk@genet/negatron@infinitebrahmanuniverse/nolb-mk@innomobile-native/branch-io@mailbutler/cordova-universal-links-plugin@mydaco/mydaco-scripts@mr_dj07/cordova-plugin-universal-links@nagygyula21/ionic-plugin-deeplinks@everymatrix/ufe-webpack@metaclinic/dev-testing@jatahworx/bad-fs-services@jeffrygonzalez/ng2templates@here/harp-atlas-tools@here/harp-fontcatalog-generator@sa0001/coffee-cache@patched/cordova-universal-links-plugin@pineview/nightwatch@panstav/git-ignore@spoonconsulting/ionic-plugin-deeplinks@share911/cordova-universal-links-plugin@signosoft/cordova-universal-links-plugin@retailmenot/grunt-hooks@seculum/vue-dev-clone@sematext/logagent@stanislavproizd/ionic-plugin-deeplinksmy-branch-cordova-sdkmusivkmydaco-scriptsmydaco-scripts2moveodev-ionic-plugin-deeplinksmylessoverlogozserveroprinter
1.0.0

10 years ago

0.1.0

13 years ago