14 September, 2015

Get Filelist file name and directory in TalenD job


 ((String)globalMap.get("tFileList_1_CURRENT_FILE"))
this variable holds current file name without complete path.

    ((String)globalMap.get("tFileList_1_CURRENT_FILEPATH"))
this variables holds current file name with complete path.

    ((String)globalMap.get("tFileList_1_CURRENT_FILEEXTENSION"))

this variable holds current file`s extension, if file has no extension then it will return null

    ((String)globalMap.get("tFileList_1_CURRENT_FILEDIRECTORY"))
this variable holds only directory name with path exclude file name.

    ((Integer)globalMap.get("tFileList_1_NB_FILE"))
this variables holds the number of files listed by tFilelist.