From: Christian Bindeballe <[EMAIL PROTECTED]>
Date: Sat, 07 Jan 2006 17:24:45 +0100

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.

Personally, I'd use a cron job (or Scheduled Task in Windows) to call a perl or shell script; use OS commands for file system management, and let Cocoon concentrate about serving up web pages. If you really want to do it in Cocoon, there's always the cron block, of course.


Andrew.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]