Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: [Scripting] - How to Overwrite duplicate file in remote folder

You are renaming the file to itself: "Error moving file '/in/build/ting.tmp' to '/in/build/ting.tmp'." – Why?
z

[Scripting] - How to Overwrite duplicate file in remote folder

Log

< 2020-09-19 11:52:36.988 Status code: 4, Message: 2322, Server: Failure, Language:
. 2020-09-19 11:52:36.990 Asking user:
. 2020-09-19 11:52:36.990 Error moving file '/in/build/ting.tmp' to '/in/build/ting.tmp'. ("General failure (server should provide error description).
. 2020-09-19 11:52:36.990 Error code: 4
. 2020-09-19 11:52:36.990 Error message from server: Failure

Script
open sftp://%4%:%5%@%2%:%3%/
option confirm off
put %1%*.csv %6%*
mv %6%* %6%*.tmp
mv %6%*.tmp %7%*.csv
exit

How do i set default to overwrite duplicate file in remote folder?