My favorites | Sign in
Project Logo
                
Search
for
Updated Jul 20, 2009 by evertpot
Labels: Phase-Implementation, Featured
TemporaryFileFilter  
How to deal with the various temporary files clients create

Overview

The 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.

Usage

To 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);

Limitations

Currently 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..


Comment by grahamperrin, Aug 04, 2009

Sign in to add a comment
Hosted by Google Code