IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.



#Automation


#Applicationintegration
#webMethods
#Integration
 View Only
  • 1.  SFTP: Move files to another folder and rename

    Posted 01/12/22 03:56 AM

    Hi community,

    I want to move files to backup folder on remote side after download them by the SFTP server.

    That means:

    1. There is a file named test.txt and a folder named backup in remote folder.
    2. Get test.txt to my local folder.
    3. Move test.txt to backup folder and rename it as test.txt.ok.

    However, there is only pub.client.sftp:rename, no copy or moveFile function.

    Does anyone have any suggestion or help for that?

    Thanks!


    #SFTP
    #Integration-Server-and-ESB
    #webMethods


  • 2.  RE: SFTP: Move files to another folder and rename

    Posted 01/12/22 04:27 AM

    Hi Maggie,

    according to IS Built-In-Services Reference this should be possible with rename service:

    Set oldPath to “test.txt” and newPath to “backup/test.txt.ok” in this case.

    HTH.

    Regards,
    Holger


    #webMethods
    #Integration-Server-and-ESB
    #SFTP


  • 3.  RE: SFTP: Move files to another folder and rename

    Posted 01/12/22 10:12 PM

    Hi @Holger_von_Thomsen ,

    ! It is working now!
    Thank you for your help.


    #SFTP
    #Integration-Server-and-ESB
    #webMethods