public class Purge extends Wanderer implements WandererCallback
Usage: java com.bbn.openmap.util.wanderer.Purge (dir path) ...
exhaustiveSearch, topToBottom
Constructor and Description |
---|
Purge(java.lang.String[] startsWith,
java.lang.String[] endsWith) |
Modifier and Type | Method and Description |
---|---|
boolean |
handleDirectory(java.io.File directory)
Do what you need to do to the directory.
|
boolean |
handleFile(java.io.File file)
Do what you need to do to the file.
|
static void |
main(java.lang.String[] argv)
Given a set of files or directories, parade through them to
find files that end with '`', or files that start with '.#',
and delete them.
|
getCallback, handleDirectory, handleEntry, isExhaustiveSearch, isTopToBottom, setCallback, setExhaustiveSearch, setTopToBottom
public boolean handleDirectory(java.io.File directory)
WandererCallback
handleDirectory
in interface WandererCallback
directory
- that represents a directory to deal with.public boolean handleFile(java.io.File file)
WandererCallback
handleFile
in interface WandererCallback
file
- to handle.public static void main(java.lang.String[] argv)
argv
- paths to files or directories, use -h to get a
usage statement.Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details