Post a reply

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: Moving Files to New Directory After Successful Upload

What destination? The local folder or the new remote folder?

Please attach a full session log file showing the problem (using the latest version of WinSCP).

To generate the session log file, set Session.SessionLogPath. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you can mark the attachment as private.


Your duplicate post:
https://winscp.net/forum/viewtopic.php?t=23946
JimmyFree

Moving Files to New Directory After Successful Upload

There is a script that permits Moving Files to New Directory After Successful Upload. It is here: https://winscp.net/eng/docs/script_local_move_after_successful_upload

When I run it, it reports success, but the file never shows at its destination.

When I transferred using the GUI, it said it was successful, but had an error because it could not set the timestamp. When I turned off preserving timestamp in the GUI, then transfer worked.

How do I modify the above script so that it turns off setting the timestamp?

THANKS!