Topic "put command in script ignores -preservetime"

Author Message
acar
[View user's profile]

Joined: 2006-02-28
Posts: 10
Location: Belgrade, Serbia
I wrote a small script which uploads files to a server. It use my existing sesion which preserves time stamps.

This command is like this:

Code:
put aaa.cpp [....] ./


and it works fine. However, if I change it to

Code:
put -preservetime aaa.cpp [....] ./


it DOESN'T preserve time stamps, instead of that it writes present time!
The same behavior is with -nopreservetime (which is expected).

I made Windows shortcut with target line:
"C:\.....\WinSCP\winscp416.exe" /console /script=winscp_upload_script XXX@YYY.ZZZ

Winscp version: 4.16
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
What protocol are you using? Note that with FTP, preserving timestamp of uploaded files does not work.
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License