Skip to content

Instantly share code, notes, and snippets.

View egeriis's full-sized avatar
🤗

Ronni Egeriis Persson egeriis

🤗
View GitHub Profile
@jmarca
jmarca / makedir.js
Created August 31, 2011 18:05
naive way of recursive directory creation in node.js
/** makedir.js
* How I make directories recursively in node.js
*
* If you pass it a directory that you want to exist, it will traverse
* the directory tree up until it finds a directory that does exist,
* and then it will go back down the directory structure making all
* directories as needed.
*
* For example, if you have /home/james and you want to create
* /home/james/node/repository/makedir,