My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
TemporaryFileFilter  
How to deal with the various temporary files clients create
Phase-Implementation, Featured
Updated Dec 14, 2011 by evert...@gmail.com

Overview

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

  • OS/X Resource forks (._files)
  • OS/X .DS_Store files
  • Windows' desktop.ini files
  • Windows' Thumbs.db files
  • ViM and Smultron temporary files

Requests for more support is appreciated, we want to make this as effective 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 grahampe...@gmail.com, Aug 4, 2009

Sign in to add a comment
Powered by Google Project Hosting