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

Advertisement

z
Joined:
Posts:
1

[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?

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,034
Location:
Prague, Czechia

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?

Reply with quote

Advertisement

You can post new topics in this forum