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@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_templatesideatica-unzipimport-depsiconceptinialitebuildergulp-css-processorgulp-css-rebasegulp-prettybellygulp-process-file-loghandlebars-bundlehaplogulp-true-rebasegy-plugin-magiclinkgulp-tr-revinstallfontinstallfont-electronlisthublocalize-gsheetlocalize-gsheet-prolocalize-with-spreadsheetlocalize-with-spreadsheet-2localize-with-spreadsheet-prolocalize-spreadsheet-botless-fabricatorlkpm-clilkpm-packerlogagent-jslucify-component-builderlucify-webpack-configmakeshlogsene-jsmachinarylivescript-cachekoko-cmsknodekonrad@thathoff/cordova-plugin-universal-links@xyzmaps/harp-fontcatalog-generator@zalastax/nolb-mk@zenkit-dev/cordova-plugin-universal-linkakwai-appackee-localize-spreadsheet-sdkauditboard-cliawesome-nodeanxebanxeb-nodeappstronauts-branch-cordova-sdkapiizebackstop-crawl3vot-cli3vot-cloud@cremeta/harp-atlas-tools@colorix/localize-google-spreadsheet@zalaris/ionic-plugin-deeplinksspaceprots-jsonschema-gentest-cordova-universal-links-plugintypesheettottys-projecttransifextranslationtiendvd-logagenttv-toolkit-cli@bigfunger/decompress-zip@cdevine49/react-numeric-input
1.0.0

10 years ago

0.1.0

13 years ago