Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to delete multiple files using file adapter

bobAug 13 2018 — edited Aug 14 2018

Hi All,

We are using SOA11g, and the requirement is to delete all the files inside a directory, which are of a particular format.

For ex. we need to delete all files ending with .pdf.

I have gone through:

Biradar ShriKant Oracle SOA Blog: File / FTP Adapter SOA - COPY / MOVE / DELETE Operation

https://docs.oracle.com/cd/E23943_01/integration.1111/e10231/adptr_file.htm#TKADP2109

but these documents talks about deleting single file,

I tried below pattern but no luck

<property name="TargetFileName" value="*.pdf"/>

<property name="TargetFileName" value="*\.pdf"/>

<property name="TargetFileName" value=".*\.pdf"/>

<property name="TargetFileName" value="*"/>

How can I achieve this requirement?, is there any other property available which will look for pattern for target file, like TargetFileNamingConvention or TargetIncludeFiles?

Regards,

Bob

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 11 2018
Added on Aug 13 2018
1 comment
476 views