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

Class FileCleanup

source code

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