nl_tokens: Recursively creates dir
pl_tokens: function mkdirSyncRecursive ( dir ) { var baseDir = path . dirname ( dir ) ; // Base dir exists, no recursion necessary if ( fs . existsSync ( baseDir ) ) { fs . mkdirSync ( dir , parseInt ( '0777' , 8 ) ) ; return ; } // Base dir does not exist, go recursive mkdirSyncRecursive ( baseDir ) ; // Base dir created, can create dir <mask> . mkdirSync ( dir , parseInt ( '0777' , 8 ) ) ; }