Easliy clean up old files - possible?

mercredi 27 janvier 2016

We have a single channel on our server where we enable file-uploads to our users to share small files with short life-span. Is there an easy way to clean those up e.g. every morning?

Also, for temporary channels, am I correct to assume that all files uploaded to a channel will be garbage-collected/deleted when the channel is removed?

Can I just delete these files on a filesystem-basis or will that leave the server database out of sync? I know that there is a serverquery-interface to handle files like the command ftgetfilelist etc., but that is very inconvenient to use.

Maybe a nice feature would be a channel specific permission like i_ft_file_maxage which takes an argument in seconds and after that time has passed, the file is automatically deleted?
Easliy clean up old files - possible?

0 commentaires:

Enregistrer un commentaire