public class FileJanitor extends Object
Constructor and Description |
---|
FileJanitor(File baseDir,
FileFilter filter) |
FileJanitor(File baseDir,
long age) |
Modifier and Type | Method and Description |
---|---|
Vector<File> |
cleanup()
process all accepted files and empty directories that have been accepted
note that the filter may actually do something |
void |
setDeleteEmptyDir(boolean delEmpty)
if true, we delete empty directories
|
void |
setLogSingle(boolean logSingle)
if true, we log each deletion
|
String |
toString() |
public FileJanitor(File baseDir, FileFilter filter)
baseDir
- filter
- the file filter thatpublic FileJanitor(File baseDir, long age)
baseDir
- age
- the minimum zapp file age in secondspublic void setLogSingle(boolean logSingle)
logSingle
- public void setDeleteEmptyDir(boolean delEmpty)
delEmpty
- public Vector<File> cleanup()
public String toString()
toString
in class Object
Object.toString()
Copyright © 2018. All rights reserved.