Can we get the current filepath without the filename?

Highlighted
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.

What’s New for Talend Spring ’19

Watch the recorded webinar!

Watch Now

Definitive Guide to Data Quality

Create systems and workflow to manage clean data ingestion and data transformation.

Download

Tutorial

Introduction to Talend Open Studio for Data Integration.

Watch

Downloads and Trials

Test drive Talend's enterprise products.

Downloads