<p dir="ltr">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.<br>
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.<br>
--Peter</p>
<br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Tue, Feb 4, 2025, 6:13 a.m. Martin Cuno <<a href="mailto:martin.cuno@posteo.de">martin.cuno@posteo.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello everyone, a small thing:<br>
<br>
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.<br>
<br>
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".<br>
<br>
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?<br>
<br>
If it's not of general interest (candidate for the core), I'm happy to use a small code snippet.<br>
<br>
Thanks! Martin from Siegen, Germany<br>
<br>
<br>
-- <br>
Diese E-Mail wurde von Avast-Antivirussoftware auf Viren geprüft.<br>
<a href="http://www.avast.com" rel="noreferrer noreferrer" target="_blank">www.avast.com</a><br>
<br>
_______________________________________________<br>
pmwiki-users mailing list<br>
<a href="mailto:pmwiki-users@pmichaud.com" target="_blank" rel="noreferrer">pmwiki-users@pmichaud.com</a><br>
<a href="http://www.pmichaud.com/mailman/listinfo/pmwiki-users" rel="noreferrer noreferrer" target="_blank">http://www.pmichaud.com/mailman/listinfo/pmwiki-users</a><br>
</blockquote></div>