Here's the promised v2.5.0 release of CompFileDate

As I hinted in the previous post, another new release of my rather niche file date comparison utility has escaped into the wild. This one's v2.5.0.

After releasing v2.4.0 I was browsing Delphi's RTL code that reads file dates and found that, when requesting the file creation date for Linux, the code actually returns the status changed date. After some research I found that most Linux file systems don't support the creation date and stat(2) API calls doesn't provide it anyway.

To fix this I added a new command option, for Linux only, to explicitly read the status changed date instead of using the misleading creation date option. I also greatly expanded the number of aliases for date types, mainly because I keep guessing the correct options (slightly) incorrectly. Having more aliases increases the likelihood of guessing correctly without having to RTFM. 

Additional aliases for comparison operators were also added, including the ability to specify arithmetic operators as parameters to the --compare command. Examples are --compare== for equality and --compare="<>" for inequality. You do need to remember to enclose < and > symbols in quotes though, otherwise some weird redirections happen!

The ability to compare a file's last accessed date has also been added.

See the Program Usage section of Docs/ReadMe.txt for details of expanded commands.

You can see all the changes in the change log.

👉 Download v2.5.0 from GitHub



Comments

Popular posts from this blog

Initialising dynamic arrays

New Array Utilities Library Unit released

Deleting elements from a dynamic array