nl_tokens: Validate if a given path has a valid directory is it doesn t console . error with an optional custom message .
pl_tokens: function validateDirectorySync ( path , errorMessage ) { errorMessage = errorMessage || 'Error validateDirectorySync() the directory path is not valid ' + <mask> ; var isValid = existsDirectorySync ( path ) ; if ( ! isValid ) { console . error ( errorMessage ) ; } return isValid ; }