This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** 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, |