|
TemporaryFileFilter
How to deal with the various temporary files clients create
OverviewThe Sabre_DAV_Tree_TemporaryFileFilterPlugin is a plugin that will intercept known common temporary files created by operation system and application and place them in a temporary directory. The reasoning behind it is that many clients create garbage files on your WebDAV share. If your WebDAV filesystem is a virtual filesystem, mapped to a database, you would end up with lots of useless database records, possibly even polluting a front-end web application. Supported tempory files
Requests for more support is appreciated, we want to make this as effictive as possible. UsageTo use this plugin, just add it to the server.
$server = new Sabre_DAV_Server($myTree);
$tffp = new Sabre_DAV_TemporaryFileFilterPlugin('/path/to/temporary/directory');
$server->addPlugin($tffp);
LimitationsCurrently the TemporaryFileFilter doesn't clean up temporary files. It is recommended currently to create a cron-job to clean up files older than say, 24 hours.. |
Sign in to add a comment
Treatment of all . files as temporary is not a good idea. Please see http://groups.google.com/group/sabredav-discuss/browse_frm/thread/a07d6cf6bc7b7b07/15b23ae8fabadbc1#15b23ae8fabadbc1