Issue with deleting all files from a folder with tFTPDelete

One Star

Issue with deleting all files from a folder with tFTPDelete

Hello,

 

I'm kind of rookie with Talend things, and I want to delete all files from ftp folder. I'm using tFTPDelete component:

 

- When I use "*.*" as filemask, it raises exception => I suspect this is because filepattern  matches the ".." pseudo file (parent dir)

- When I use "*.???" as filemask, it works for any file having 3 digits length, and no exception is raised. => But I want to delete any file, with suffix of any length, or no suffix at all.

- When use regular expression "^(?!([.][.])$).+$", it deletes some files but not all files. => That regular expression aims at matching all files but ".."

 

I'm running out of idea Smiley Sad How can I delete all files from ftp folder, whatever the filenames are ?

 

Any help would be greatly appreciated

 

Regards

Tags (1)
Forteen Stars

Re: Issue with deleting all files from a folder with tFTPDelete

You can use combination

tFTPList -> Iterate -> tFTPDelete

-----------

2019 GARNER 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

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog

How Media Organizations Achieved Success with Data Integration

Learn how media organizations have achieved success with Data Integration

Read

Tutorial

Introduction to Talend Open Studio for Data Integration.

Watch