It can be easily done with flow (with a called sitemap pipeline every day with cron or something), but I really doubt if this is the way you would like to go.
First, of all, how many and large files are we talking about? It would be rather expensive to loop through them in flow, open them each by each, looking for the element <expiry-date/>, and if it is found, delete the file. But, if you look every day, then files that are not modified within the last 24 hours won't have to be checked again. Therefor, you could use the directory generator. Anyway, I would prefer to do it with a custom generator, opening docs that have changed in the last 24 hours, SAX parse them on the <expiry-date/> element, and if found, delete them AS > > > hello, > > is it possible to make cocoon check for files in a directory > once a day > and delete certain (xml)-files? those would have an element like > <expiry-date/> so it is rather clear, which ones to delete and which > ones to keep. should I do this writing an action or rather do > it with a > flowscript? > > any ideas appreciated. > > regards, > > christian > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
