phelps.io
public class FileList extends Object
find
is just some tests inside an iterator loop.Version: $Revision: 1.11 $ $Date: 2003/08/07 03:27:42 $
See Also: java.io.File FileFilterPattern
Constructor Summary | |
---|---|
FileList(String base, FileFilter filter) | |
FileList(String[] base, FileFilter filter) | |
FileList(String[] base, int start, FileFilter filter)
Part of base starting from start,
for use by command-line commands that process the rest of String[] argv after options. | |
FileList(File base, FileFilter filter) | |
FileList(File[] base, FileFilter filter) |
Method Summary | |
---|---|
void | addFile(File f) |
Iterator<File> | breadthFirstIterator()
Iterates over all passed files and recursively all files in base directories in breadth-first order.
|
void | copy(File dirout)
Copy all files to destination directory dirout. |
boolean | delete()
Delete all files. |
Iterator<File> | depthFirstIterator()
Iterates over all passed files and recursively all files in base directories in depth-first order.
|
Iterator<File> | iterator() The iterator for java.lang.Iterable and the enchanced for loop is depthFirstIterator. |
long | length()
Returns total length of files in group. |
File[] | listFiles() |
void | setDirsFirst(boolean b) If true , reports, per directory, all the subdirectories then the rest of the files. |
void | setRecurse(boolean b) If true , recurses through directories to collect files. |
void | setSorted(boolean b) If true sorts filenames, per directory, in Strings#DICTIONARY_CASE_INSENSITIVE_ORDER case-insensitive dictionary order . |
String[] argv
after options.FileLists
object.Returns: true if successfully deleted all files
FileList
object.true
, reports, per directory, all the subdirectories then the rest of the files.true
, recurses through directories to collect files.true
sorts filenames, per directory, in Strings#DICTIONARY_CASE_INSENSITIVE_ORDER case-insensitive dictionary order
.