2017-06-25 71 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>