Forum Stats

  • 3,733,838 Users
  • 2,246,829 Discussions
  • 7,856,890 Comments

Discussions

Wildcard not working in ftp adapter

User_UMDQJ
User_UMDQJ Member Posts: 1 Green Ribbon

I am try to delete the file present at ftp location using bpel ftp adapter. I am able to pass the file name in invoke property jca.ftp.TargetFileName. The code is working fine when full filename is passed. Its failing when wildcard is being used. Ex "2020.*.txt" Here i want to delete all txt files generated in 2020.


Any help where i am going wrong?

Answers

  • Billy Verreynne
    Billy Verreynne Member Posts: 28,263 Red Diamond

    The FTP spec (RFC959) does not mention support for wildcards in the pathname parameter. It also use the singular in referencing the file to delete:

             DELETE (DELE)
    
                This command causes the file specified in the pathname to be
                deleted at the server site.  If an extra level of protection
                is desired (such as the query, "Do you really wish to
                delete?"), it should be provided by the user-FTP process.
    


Sign In or Register to comment.