Re: file/directory creation date and time
"Alexey Veretennikov (as alexey dot veretennikov at protonmail dot com)" <[email protected]>
| Newsgroups | gmane.lisp.lispworks.general |
|---|---|
| Message-ID | <dyYdG9TfJk7UHQUZhOD6QeY1dnFW06Skl4FFsg4iOx2nx_-zkVOEZMj6nUhDLvs893lloL_Gx82B7at9M28yMK9WZmvIl9k-tCg6sYvOJJY=@protonmail.com> |
Sorry, I mistyped it while experimenting, should have been file-write-date, and it is not exactly what you need. BR, /Alexey On Friday, December 5th, 2025 at 15:47, John DeSoi <[email protected]> wrote: > "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