FTP/SFTP 使用 Spring 集成发送带前缀的临时文件?

FTP/SFTP sending prefixed temp files with Spring Integration?

SI 的 FTP 和 SFTP 出站适配器允许发送带有默认为 .writing 的自定义后缀的临时文件。但我正在与一个遗留系统交互,该系统仅适用于带前缀的命名临时文件重命名(例如 S*-> F*)。

快速浏览源代码后,我找不到要使用的临时文件前缀 属性 或临时文件命名策略 intfc。

也就是说,我可能会使用 RemoteFileTemplate 的 API 来禁用临时文件、发送和重命名任何我想要的方式。

对于实施带前缀的临时文件重命名方案,有什么比 RemoteFileTemplate 更好的选择?

不支持使用前缀代替临时文件名的后缀。

您可以按照您的建议使用RemoteFileTemplate;或 contribute 增强。