【问题标题】:Rename SFTP file after reading it读取后重命名 SFTP 文件
【发布时间】:2019-07-11 09:18:47
【问题描述】:

我想使用 SFTP 连接器读取文件,然后想更改其名称。 这是我的 SFTP 连接器 -

<sftp:connector preferredAuthenticationMethods="publickey,password,keyboard-interactive" name="SFTP" validateConnections="true" doc:name="SFTP" outputPattern="file1Temp.txt"/> 

我的 SFTP 入站端点是 -

<sftp:inbound-endpoint connector-ref="SFTP" host="${a.host}" port="${a.port}" path="${a.inputpath}" user="${a.user}" password="${a.pw}" responseTimeout="10000" pollingFrequency="600000"  doc:name="SFTP">
            <file:filename-regex-filter pattern="file1.txt" caseSensitive="true"/>
        </sftp:inbound-endpoint>

在这里,我的文件名为“file1.txt”,我想将其名称更改为“file1Temp.txt”。

【问题讨论】:

    标签: mule sftp mule-component mule-connector


    【解决方案1】:

    Mule 3.x 中的 SFTP 连接器不允许对文件进行操作,例如开箱即用的重命名。可以按照本知识库文章中的方法实现:https://support.mulesoft.com/s/article/How-to-rename-file-with-the-SFTP-connector

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-03-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多