Package ZenRRD :: Module FileCleanup :: Class FileCleanup
[show private | hide private]
[frames | no frames]

Class FileCleanup


Method Summary
  __init__(self, root, pattern, tooOld, maxProcess, frequency)
Recursively delete all files under [root] matching [pattern] older than [tooOld], processing only [maxProcess] files every [frequency] seconds.
  process(self, fullPath)
Hook for cleanin up the file
  run(self)
Start a run at the directory
  start(self)
Begin processing the directory, recursively
  test(self, fullPath)
Test file file for pattern, age and type
  walk(self, root)
Generate the list of all files

Method Details

__init__(self, root, pattern, tooOld=2592000, maxProcess=50, frequency=60)
(Constructor)

Recursively delete all files under [root] matching [pattern] older than [tooOld], processing only [maxProcess] files every [frequency] seconds.

process(self, fullPath)

Hook for cleanin up the file

run(self)

Start a run at the directory

start(self)

Begin processing the directory, recursively

test(self, fullPath)

Test file file for pattern, age and type

walk(self, root)

Generate the list of all files

Generated by Epydoc 2.1 on Thu Aug 16 09:55:12 2007 http://epydoc.sf.net