[Lazarus] Getting the last modified date of a directory

Reinier Olislagers reinierolislagers at gmail.com
Sun Oct 26 11:56:22 CET 2014


On 26/10/2014 11:45, Jürgen Hestermann wrote:
> 
> Am 2014-10-26 um 10:29 schrieb Reinier Olislagers:
>> On 26/10/2014 10:09, Jürgen Hestermann wrote:
>>> I think that "FileAge" should work for directory names too.
>> Why do you think that?
>> The docs say it doesn't:
>> http://www.freepascal.org/docs-html/rtl/sysutils/fileage.html
>>
> At least on Windows there is no difference
> to retrieve the date of a file or a directory:
Why are you quoting MSDN WinAPI help instead of FreePascal keyword help?

The FPC docs clearly state the return value is -1 in case of
directories. Have you tested it?





More information about the Lazarus mailing list