nl_tokens: / * Function that returned the uuid of the directory that contains the jobID . json file
pl_tokens: function directorySearch ( directoryPath ) { let uuidregexV4 = / [0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12} / ig ; let uuidArray = directoryPath . <mask> ( uuidregexV4 ) ; let uuidDir = null ; logger_1 . logger . log ( 'debug' , ` \n ${ JSON . stringify ( uuidArray ) } ` ) ; if ( uuidArray != null ) { uuidDir = uuidArray . pop ( ) ; // retrieving the last element of uuidArray } else { logger_1 . logger . log ( 'warn' , ` ${ directoryPath } ` ) ; } logger_1 . logger . log ( 'debug' , ` ${ uuidDir } ` ) ; return uuidDir ; }