2017-06-25 140 views
0

用骡子的ftp:访港端点如何骡子FTP下载默认情况下删除掉

  • 使用文件名过滤器来查找文件“CurrentMonth(MMM) .csv”文件,并在本地服务器上的目录下载一个副本。
  • 下载完成后,请关闭默认删除功能,以免在ftp站点上进行任何更改。

下面是流动配置提前为任何帮助 <flow name="ftpFlow1"> <ftp:inbound-endpoint host="apca.com.au" port="21" responseTimeout="10000" doc:name="FTP"/> </flow>

感谢。

回答

0

这可能帮助:

<?xml version="1.0" encoding="UTF-8"?> 
 

 
<mule xmlns:file="http://www.mulesoft.org/schema/mule/file" xmlns:scripting="http://www.mulesoft.org/schema/mule/scripting" xmlns:objectstore="http://www.mulesoft.org/schema/mule/objectstore" xmlns:http="http://www.mulesoft.org/schema/mule/http" xmlns="http://www.mulesoft.org/schema/mule/core" xmlns:doc="http://www.mulesoft.org/schema/mule/documentation" 
 
\t xmlns:spring="http://www.springframework.org/schema/beans" 
 
\t xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
 
\t xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-current.xsd 
 
http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/current/mule.xsd 
 
http://www.mulesoft.org/schema/mule/http http://www.mulesoft.org/schema/mule/http/current/mule-http.xsd 
 
http://www.mulesoft.org/schema/mule/objectstore http://www.mulesoft.org/schema/mule/objectstore/current/mule-objectstore.xsd 
 
http://www.mulesoft.org/schema/mule/scripting http://www.mulesoft.org/schema/mule/scripting/current/mule-scripting.xsd 
 
http://www.mulesoft.org/schema/mule/file http://www.mulesoft.org/schema/mule/file/current/mule-file.xsd"> 
 
    <objectstore:config name="ObjectStore__Connector" partition="testObjec" doc:name="ObjectStore: Connector"/> 
 
    <file:endpoint path="inp_path" moveToPattern="doloaded_file_name" moveToDirectory="local_directory_to_download" name="File" responseTimeout="10000" doc:name="File"> 
 
     <file:filename-regex-filter pattern="CurrentMonth(MMM).csv" caseSensitive="true"/> 
 
    </file:endpoint> 
 
    <flow name="testFlow"> 
 
     <poll doc:name="Poll"> 
 
      <file:outbound-endpoint responseTimeout="10000" ref="File" doc:name="File"/> 
 
     </poll> 
 
    </flow> 
 

 
    
 
</mule>