public static class DirScanner.Full extends DirScanner
Note that all file paths are prefixed by the name of the root directory.
For example, when scanning a directory /tmp/dir
containing a file file
,
the relativePath
sent to the FileVisitor
will be dir/file
.
DirScanner.Filter, DirScanner.Full, DirScanner.Glob
Constructor and Description |
---|
Full() |
Modifier and Type | Method and Description |
---|---|
void |
scan(File dir,
FileVisitor visitor)
Scans the given directory and pass files onto the given visitor.
|
scanSingle
public void scan(File dir, FileVisitor visitor) throws IOException
DirScanner
scan
in class DirScanner
IOException
Copyright © 2004–2021. All rights reserved.