WinSCP-release-6.1.1: TransferOptions:PreserveTimestamp = TRUE ignored?

Advertisement

BernhardKraml
Joined:
Posts:
3
Location:
Austria

WinSCP-release-6.1.1: TransferOptions:PreserveTimestamp = TRUE ignored?

I do my first steps with .NET automation.

When uploading files to the FTP-server, I always get the current time as timestamp of the uploaded file.

I upload the files with PutFiles()

Thanks for your help!
-bernhard

The FTP server reports the following features:
> 2023-08-10 17:09:17.744 FEAT
< 2023-08-10 17:09:17.746 211-Extensions supported:
< 2023-08-10 17:09:17.779  SSCN
< 2023-08-10 17:09:17.779  PBSZ
< 2023-08-10 17:09:17.780  PROT
< 2023-08-10 17:09:17.780  CCC
< 2023-08-10 17:09:17.780  CLNT
< 2023-08-10 17:09:17.780  EPSV
< 2023-08-10 17:09:17.780  EPRT
< 2023-08-10 17:09:17.780  MDTM
< 2023-08-10 17:09:17.797  MDTM YYYYMMDDHHMMSS[+-TZ];filename
< 2023-08-10 17:09:17.797  MFMT
< 2023-08-10 17:09:17.797  SIZE
< 2023-08-10 17:09:17.797  REST STREAM
< 2023-08-10 17:09:17.797  MODE Z
< 2023-08-10 17:09:17.797  LIST -Q
< 2023-08-10 17:09:17.797  SITE UTIME
< 2023-08-10 17:09:17.797  SITE MD5
< 2023-08-10 17:09:17.797  XMD5
< 2023-08-10 17:09:17.797  SITE MD5s
< 2023-08-10 17:09:17.797  SITE RANDOMACCESS
< 2023-08-10 17:09:17.797  MLST Type*;Size*;Modify*;Perm*;UNIX.owner*;UNIX.group*;
< 2023-08-10 17:09:17.797  UTF8
< 2023-08-10 17:09:17.797 211 END

Reply with quote

Advertisement

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

Re: WinSCP-release-6.1.1: TransferOptions:PreserveTimestamp = TRUE ignored?

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.

Reply with quote

BernhardKraml
Joined:
Posts:
3
Location:
Austria

I did an upload to the FTP server (TimeStamp 16:36) and a download shortly after (TimeStamp 16:38).

I had the following transferoptions:
transferOptions:TransferMode = TransferMode:BINARY.
transferOptions:PreserveTimestamp = TRUE.
I found in the log file part with the download
2023-08-16 16:38:55.305 Preserving timestamp [2023-08-16T14:35:57.000Z]
There is nothing like this in the upload.

Thanks for your help!
-bernhard
  • Testftp.log (30.82 KB, Private file)

Reply with quote

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

WinSCP requested timestamp update correctly and the server have ignored that.
> 2023-08-16 16:36:00.530 MFMT 20230810135837 Testftp.txt
...
< 2023-08-16 16:36:00.536 213 Modify=20230816163557; Testftp.txt
So it does seem to be a server-side problem.

Reply with quote

BernhardKraml
Joined:
Posts:
3
Location:
Austria

Thank you very much for your help.
I asked the owner of the FTP server and she told me that they disabled the function of saving the TimeStamp so they would know the upload time.

-bernhard

Reply with quote

Advertisement

You can post new topics in this forum