public final class FileListing
extends java.lang.Object
Constructor and Description |
---|
FileListing() |
Modifier and Type | Method and Description |
---|---|
static java.util.List<java.io.File> |
getFileListing(java.io.File aStartingDir)
Recursively walk a directory tree and return a List of all
Files found; the List is sorted using File.compareTo().
|
static void |
main(java.lang.String... aArgs)
Demonstrate use.
|
public static void main(java.lang.String... aArgs) throws java.io.FileNotFoundException
aArgs
- - aArgs[0] is the full name of an existing
directory that can be read.java.io.FileNotFoundException
public static java.util.List<java.io.File> getFileListing(java.io.File aStartingDir) throws java.io.FileNotFoundException
aStartingDir
- is a valid directory, which can be read.java.io.FileNotFoundException