我正在尝试找到允许 spring-integration-aws 在本地创建远程文件夹结构以便能够同步的配置。
示例:给定一个非常长的 s3 存储桶地址:
test.s3.bucket/folder1/floder2/folder3/etc/etc/etc/etc
目前得到错误信息:
Caused by: java.io.FileNotFoundException: test.s3.bucket/folder1/floder2/folder3/etc/etc/etc/etc/DD2419D7-104E-46FC-A513-9E587E58A949.ZIP.a.writing (No such file or directory)
看起来这是由于本地没有完整的文件夹结构引起的,是否可以设置S3InboundFileSynchronizingMessageSource
来创建它?
当前配置:
public S3InboundFileSynchronizingMessageSource s3InboundFileSynchronizingMessageSource() {
S3InboundFileSynchronizingMessageSource messageSource =
new S3InboundFileSynchronizingMessageSource(file);
messageSource.setAutoCreateLocalDirectory(true);
messageSource.setLocalDirectory(new File("onComputer"));
messageSource.setLocalFilter(new AcceptOnceFileListFilter<>());
return messageSource;