-
myndzi
Guest
Remote file last modified time
Advertisement
WinSCP appears to be setting the modified time of the remote file to my local system's timestamp. Is there any way I can get it to not mess with the timestamp at all? (That is, when it writes the file, the last modified time will be whatever the server assigned it?)
Advertisement
-
martin◆
Site Admin - Joined:
- Posts:
- 41,286
- Location:
- Prague, Czechia
Re: Remote file last modified time
WinSCP sets the timestamp of uploaded remote file to match timestamp of local source file (match in terms of UTC time).
To make WinSCP not to update the time, i.e. to keep whatever timestamp the system assigns to the file, uncheck Preserve timestamp transfer setting:
https://winscp.net/eng/docs/ui_transfer_custom#common
To make WinSCP not to update the time, i.e. to keep whatever timestamp the system assigns to the file, uncheck Preserve timestamp transfer setting:
https://winscp.net/eng/docs/ui_transfer_custom#common
-
myndzi
Guest
Ah, thanks. The name seems kind of counterintuitive to me, but I couldn't for the life of me find the checkbox you were referring to until I finally thought to click 'edit' on a specific entry in the transfer presets. Any chance of a global option that will apply to the whole connection so it doesn't need to be changed in multiple places?
-
martin◆
Site Admin
It is a global. Or what multiple places do you mean?Any chance of a global option that will apply to the whole connection so it doesn't need to be changed in multiple places?
-
myndzi
Guest
I mean, you have to set it for all the transfer setting presets and the default, which is 4 dialogs
Advertisement
-
martin◆
Site Admin
Ok, I see. If you actually use (do you?) all the presets, than yes.I mean, you have to set it for all the transfer setting presets and the default, which is 4 dialogs
-
myndzi
Guest
I don't use any of the presets, actually, but they're already there. I don't really know what effect deleting them would have, for example on text file translation between Linux <-> Windows, or other subtle things I may not know about. Actually, I was used to the one-window-per-session layout so I didn't realize that the presets were global until you mentioned it, so thanks :)
- Guest
Re: Remote file last modified time
How to add this 'not to update the time' in CMD line?
-
martin◆
Site Admin
Re: Remote file last modified time
@Guest: Use
https://winscp.net/eng/docs/scriptcommand_put#nopreservetime
-nopreservetime
switch. For example with the put
command:
https://winscp.net/eng/docs/scriptcommand_put#nopreservetime
Advertisement
You can post new topics in this forum