erickutcher / httpdownloader

HTTP(S) download manager that uses input/output completion ports (IOCP).
https://erickutcher.github.io/#HTTP_Downloader
571 stars 62 forks source link

Creation Date/Last Modified Date [Question] #166

Closed smaragdus closed 3 years ago

smaragdus commented 3 years ago

I have a question. When Set date and time of file from server response option is enabled but the server does not return date/time values I noticed different behaviour in Free Download Manager and HTTP Downloader:

Screen:

AllDup 3 4 0 24 - 2021-05-27 - 002

Is this behaviour intentional? Don't you think that when a server does not provide time/date values Creation Date should be equal to Last Modified Date?

This is not of great importance, I am just curious what you think about that.

erickutcher commented 3 years ago

Technically speaking, every time a byte is written to the file, it's going to be modified. So the date/time should reflect that. The program doesn't actually set the date/time unless it's supplied by the server so anything you see is what Windows does naturally when a file is opened, written to, and closed.

smaragdus commented 3 years ago

@erickutcher

Thank you for the explanation. So it seems that the old version of Free Download Manager (3.9.1627) which I use as a secondary download manager in cases when HTTP Downloader encounters a problem with a certain download, somehow manages to set last modified date to be equal to creation date.

Thanks