public class ListDirectory
extends java.lang.Object
PdsDirectory
Constructor and Description |
---|
ListDirectory() |
Modifier and Type | Method and Description |
---|---|
static void |
listSubdirectories(java.lang.String dirName)
Lists only the sub-directories.
|
static void |
main(java.lang.String[] args)
The main method accepts a directory name as the only
argument and calls both
listAll(String)
and listSubdirectories(String) to list the
directory contents. |
public static void main(java.lang.String[] args)
listAll(String)
and listSubdirectories(String)
to list the
directory contents.args
- The name of the directory to listpublic static void listSubdirectories(java.lang.String dirName)
dirName
- The name of the directory to list