[pmwiki-users] Adding ctime=0
Peter Kay
pkay42 at gmail.com
Tue Feb 4 12:49:22 PST 2025
It might not hurt to have an automatic import of flat text files into
PMWiki. E.g., read ctime from the last touched date and if or when it's
changed update to full metadata.
I have run into that before as well, and used a command line perl script or
something to update my files' headers, but that's not practical for
everyone.
--Peter
On Tue, Feb 4, 2025, 6:13 a.m. Martin Cuno <martin.cuno at posteo.de> wrote:
> Hello everyone, a small thing:
>
> I have almost 10,000 files in one of my PmWikis. Some of them are from
> ancient sources, imported as flat files, and that's why the "ctime="
> information is missing here.
>
> Sometimes this bothers me, because I have info fields like: "This file was
> created on ... and last modified on .... If ctime doesn't exist, today's
> date is used. Maybe I could change that with an "if" condition. But I would
> prefer to add that to the files, namely as "ctime=0". Then it says "January
> 1, 1970" and everyone knows. I like my files to be "in order".
>
> I'm not currently able to get this to work with external tools. So: Since
> PmWiki writes information to the raw file format when saving anyway,
> couldn't it add this information as well?
>
> If it's not of general interest (candidate for the core), I'm happy to use
> a small code snippet.
>
> Thanks! Martin from Siegen, Germany
>
>
> --
> Diese E-Mail wurde von Avast-Antivirussoftware auf Viren geprüft.
> www.avast.com
>
> _______________________________________________
> pmwiki-users mailing list
> pmwiki-users at pmichaud.com
> http://www.pmichaud.com/mailman/listinfo/pmwiki-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20250204/9814a50e/attachment.html>
More information about the pmwiki-users
mailing list