Skip to content

SFTP whenFileExists

Post any question you may have in regards to GoAnywhere MFT and let our talented support staff and other users assist you.
If you need a quicker response, please create a support ticket via the customer portal my.goanywhere.com or contact our support team by email at [email protected].
  • Yusuf Offline
  • Posts: 3
  • Joined: Fri Oct 23, 2015 11:29 am

SFTP whenFileExists

Post by Yusuf »

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 Offline
  • Support Specialist
  • Posts: 590
  • Joined: Tue Jul 17, 2012 2:12 pm
  • Location: Phoenix, AZ
  • Contact:

Re: SFTP whenFileExists

Post by Support_Rick »

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
Post Reply