Page 1 of 1

SFTP whenFileExists

Posted: Mon Oct 26, 2015 11:20 am
by Yusuf

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?


Re: SFTP whenFileExists

Posted: Mon Oct 26, 2015 12:28 pm
by Support_Rick

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.