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

JimmyFree

irrupt wrote:

Yes, it would be nice to have WinSCP automatically ignore timestamp errors.

I'm having issues uploading files with WinSCP script method.

If the timestamp is invalid (just a time for example, no date) WinSCP just dies and quits when attempting to modify the timestamp.

There should be an option (scriptable too!) that tells WinSCP to ignore any errors while attempting to modify the timestamp.


I think the solution is here: https://winscp.net/eng/docs/library_from_script_transfer_settings

$transferOptions = New-Object WinSCP.TransferOptions
$transferOptions.FilePermissions = $Null # This is default
$transferOptions.PreserveTimestamp = $False

Unfortunately, I do not know how to implement it in a script.
irrupt

Yes, it would be nice to have WinSCP automatically ignore timestamp errors.

I'm having issues uploading files with WinSCP script method.

If the timestamp is invalid (just a time for example, no date) WinSCP just dies and quits when attempting to modify the timestamp.

There should be an option (scriptable too!) that tells WinSCP to ignore any errors while attempting to modify the timestamp.
snakyjake

When I upload files to some sites, I receive an error message regarding timestamps and permissions. So for those site where I don't have permissions, I disable the timestamp preservation. However, other site I like to keep it enabled.
The other option is to ignore the errors instead of enabling/disabling.

Thanks.
martin

Re: Ignore "Preserve timestamp" errors

What's the use case?
snakyjake

Ignore "Preserve timestamp" errors

In the Transfer Settings...
Just like "Ignore permission errors", I would also like a feature to "Ignore Preserve timestamp" errors.