spring-cloud-starter-stream-source-file 处理后删除文件

spring-cloud-starter-stream-source-file delete the file after processing

我正在尝试利用 spring-cloud-starter-stream-source-file 应用程序 (https://github.com/spring-cloud-stream-app-starters/file/tree/master/spring-cloud-starter-stream-source-file) 来轮询目录并将文件引用发送到自定义处理器以进行进一步处理。

是否可以选择在源应用程序处理后删除文件?

我们没有删除 file-source yet. Feel free to add a story in the file-source backlog 的已处理文件的选项 - 我们也欢迎贡献!

作为替代方案,您可以使用 sftp-source,其中包含一个选项,用于在成功摄取时删除远程文件。