nl_tokens: Get file path by key the value must be exist otherwise the process will exit .
pl_tokens: function ( key , onlyCheckDirectory ) { var filePath = this . loadVar ( key ) ; if ( ! filePath ) { exitProcess ( 'empty file path for ' + key , this . alarm ) ; return false ; } if ( ! onlyCheckDirectory ) { if ( ! fs . existsSync ( filePath ) ) { exitProcess ( 'the value of ' + <mask> + ' is a necessary file ,but not exists in ' + filePath , this . alarm ) ; return false ; } } else { var dirname = path . dirname ( filePath ) ; if ( ! fs . lstatSync ( dirname ) . isDirectory ( ) ) { exitProcess ( 'the path ' + dirname + ' must exist and be a directory' , this . alarm ) ; return false ; } } return filePath ; }