Why does Mule FTP connector doesn't delete file when streaming is enabled

前端 未结 1 974
刺人心
刺人心 2021-01-25 18:48

This is the relevant part of my mule-config




                


        
1条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-25 19:31

    As you've seen in https://stackoverflow.com/a/17974787/387927, the answer to Q1 is: because a transfer is still running, as the transport is in streaming mode, Mule will not issue a delete.

    The answer Q2 would be to get a hold of the FtpConnector via the registry, get an FTPClient instance with getFtp(uri) using the URI of your FTP endpoint then call deleteFile on the FTPClient.

    0 讨论(0)
提交回复
热议问题