From Thursday, July, 9, 3:00 PM Pacific,
our Community site will be in
read-only mode
through Sunday, July 12th.
Thank you for your patience.

tFTPFileList Current File Name

Highlighted
Six Stars

tFTPFileList Current File Name

When I am getting current File Name of tFTPFileList. It is returning together with file details. How to get only file name?

 

context.ftpCurrFileName = ((String)globalMap.get("tFTPFileList_1_CURRENT_FILE"));
System.out.println(context.ftpCurrFileName);

 

The above code is returning as following:

-rwxrwxrwx 1 0 0 5935 Jul 24 10:27 1.xml
-rwxrwxrwx 1 0 0 4580 Jul 24 10:27 2.xml


Accepted Solutions
Highlighted
Nine Stars

Re: tFTPFileList Current File Name

Hi,

 

I think that you probably tick the "File detail" checkbox in the component?

You should try to untick it.

 

Regards.

View solution in original post


All Replies
Highlighted
Nine Stars

Re: tFTPFileList Current File Name

Hi,

 

I think that you probably tick the "File detail" checkbox in the component?

You should try to untick it.

 

Regards.

View solution in original post

2019 GARTNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog