Can we get the current filepath without the filename?

Nine Stars

Can we get the current filepath without the filename?

This gives us the folder path and the file name:
(String)globalMap.get("tFileList_1_CURRENT_FILEPATH")
This gives us the file name:
(String)globalMap.get("tFileList_1_CURRENT_FILE")
Is there a way to get only the folder path stopping before the file name?
Seven Stars

Re: Can we get the current filepath without the filename?

(String)globalMap.get("tFileList_1_CURRENT_FILEDIRECTORY")
If you look in the Outline window, you can see all the globalMap variables each component in your job creates. You can drag and drop these into fields in your job.
You can also in any field, use Ctrl+Space to bring up a similar list, which you can filter by typing, from which to select an available globalMap or context variable.