SI配置如下图所示,当本地目录下有文件或子目录时,无法下载远程文件,如果本地目录为空,则工作正常,有什么建议吗?
<bean id="ftpClientFactory" class="org.springframework.integration.ftp.session.DefaultFtpSessionFactory">
<property name="host" value="${host}"/>
<property name="port" value="${availableServerPort}"/>
<property name="username" value="${userid}"/>
<property name="password" value="${password}"/>
<property name="clientMode" value="0"/>
<property name="fileType" value="2"/>
<property name="bufferSize" value="100000"/>
</bean>
<int-ftp:inbound-channel-adapter id="ftpInbound"
channel="ftpChannel"
session-factory="ftpClientFactory"
charset="UTF-8"
filename-pattern="*.txt"
auto-create-local-directory="true"
delete-remote-files="false"
remote-directory="/export/home/data"
remote-file-separator="/"
local-directory="resources/smooks/files">
<int:poller fixed-rate="1000"/>
</int-ftp:inbound-channel-adapter>