nl_tokens: / * Utils . create . folder () ; Utils . create . file () ; Create folder if needed Then create file
pl_tokens: function createFile ( filePath , fileContent ) { var folderPath = filePath . <mask> ( '/' ) ; folderPath . pop ( ) ; folderPath = folderPath . join ( '/' ) ; if ( ! Utils . exist ( folderPath ) ) createFolder ( folderPath ) ; fs . writeFileSync ( filePath , fileContent ) ; Utils . log ( 'Created file: ' + filePath ) ; return Utils ; }