cancel
Showing results for 
Search instead for 
Did you mean: 

Exclude files in the SFTP adapter

Former Member
0 Kudos

Hi.

I want to pick all files in a specific directory on the SFTP server except the *.tmp files.

We are using the SFTP adapter on a PI 7.3 system.

How would I do this? There are no exclusion mask as in the file adapter.

Best Regards

Kalle

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Got the following expression to work.

^.*\.(?!tmp$)[^.]+$

Thanks for input.

PS. Adarsh ofcourse I tried google. DS.

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Kalle,

Can you try giving *.[^t][^m][^p] in your file adapter . Kindly let me know the result once you tried.

Thanks,

Swetha.

former_member184789
Active Contributor
0 Kudos

Hi,

Check out the below thread:

http://scn.sap.com/message/13878401

The regex pattern Negative Lookahead may help you. You can also google it.

Former Member
0 Kudos

Hi,

Please use regular expressions to create the filename in case of SFTP adapter.

http://en.wikipedia.org/wiki/Regular_expression

Thanks,

Sudhansu