SFTP whenFileExists

If you have a new question you’d like our support staff to post a response to, please visit our customer community, GoAnywhere Insiders, to pose the question in our Discussion Boards. We have a thread “Ask Our Tech Experts” that our support team monitors on a regular basis, or you can start a new discussion where other GoAnywhere users and support staff can weigh in. Log in or create your new account at https://insiders.goanywhere.com.

If you need an immediate response, please create a support ticket or contact our support team by email at [email protected].
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