SFTP whenFileExists

Post any question you may have in regards to GoAnywhere MFT and let our talented support staff and other users assist you.
2 posts Page 1 of 1

Yusuf

Posts: 3
Joined: Fri Oct 23, 2015 11:29 am

Post by Yusuf » Mon Oct 26, 2015 11:20 am
Hi,

I'm new to GoAnywhere, just trying to do an SFTP Get and Put. I'm wondering where the options are for handling files when the target already exists. My project is creating file 2.txt, file 3.txt etc. I've seen reference to whenFileExists in this forum but that attribute doesn't seem to be allowed in SFTP?

Thanks
Yusuf

Support_Rick

Support Specialist
Posts: 592
Joined: Tue Jul 17, 2012 2:12 pm
Location: Phoenix, AZ

Post by Support_Rick » Mon Oct 26, 2015 12:28 pm
Yusuf,

FTP allows for 2 options on transfer ... PUT/APPEND. Once replaces/creates and the other appends to/creates.

In this situation, your best bet would be to take advantage of the Temp Workspaces and just download the file to that location. Then, use your workflow to Copy/Move to the Final Destination providing any safeguards that are needed to Overwrite, Rename, etc.
Rick Elliott
Lead Solutions Consultant
(402) 944.4242
(800) 949-4696
2 posts Page 1 of 1