Re: file/directory creation date and time

"John DeSoi (as john at desoi dot dev)" <[email protected]>
Newsgroups gmane.lisp.lispworks.general
Message-ID <0100019aeefb9adb-b628091a-be73-46af-997d-72edf5dc7365-000000@email.amazonses.com>
"file-create-date" returns no match in the LW documentation search. 

I'm not sure what the difference is between system:file-stat-last-change and system:file-stat-last-modify, but they don't give the creation timestamp. And they only work on files, not directories. 

The only option I found so far is osicat, but it seems overkill to add it as a dependency only for this purpose. I'll probably have to work out the system API. I only need macOS for now.

Thanks,

John DeSoi, Ph.D.


> On Dec 5, 2025, at 1:24 AM, Alexey Veretennikov <[email protected]> wrote:
> 
> You can use something like this (decode-universal-time (file-create-date "myfile.txt")),
> 
> or on *nix
> 
> (system:file-stat-last-change (system:get-file-stat "myfile.txt")) to get Epoch timestamp
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.