public class Scan extends Object
Constructor and Description |
---|
Scan() |
Modifier and Type | Method and Description |
---|---|
ArrayList<String> |
addExclude(ArrayList<String> list) |
ArrayList<String> |
getExclude() |
boolean |
getRecursive() |
boolean |
getVerbose() |
static void |
main(String[] args)
Command-line interface.
|
long[] |
scan(String path)
Scan a path and count the number of files and total bytes occupied.
|
ArrayList<String> |
setExclude(ArrayList<String> list) |
boolean |
setRecursive(boolean state) |
boolean |
setVerbose(boolean state) |
void |
showHelp()
Show the help for the tool.
|
public static void main(String[] args)
args
- command-line arguments.public void showHelp()
public long[] scan(String path) throws Exception
path
- the file system path to scan for files.Exception
- if any error occurs.public boolean getVerbose()
public boolean setVerbose(boolean state)
public boolean getRecursive()
public boolean setRecursive(boolean state)
Copyright © 2014-2015 Regents University of California. All Rights Reserved.