Package hudson.util
Class DirScanner
java.lang.Object
hudson.util.DirScanner
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
DirScanner.Full
,DirScanner.Glob
,FilePath.ExplicitlySpecifiedDirScanner
Visits a directory and its contents and pass them to the
FileVisitor
.
A DirScanner
encapsulates the logic of how it filters files in the directory. It is also remotable.- Since:
- 1.343
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Scans by filtering things out fromFileFilter
.static class
Scans everything recursively.static class
Scans by using Ant GLOB syntax. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract void
scan
(File dir, FileVisitor visitor) Scans the given directory and pass files onto the given visitor.protected final void
scanSingle
(File f, String relative, FileVisitor visitor)
-
Constructor Details
-
DirScanner
public DirScanner()
-
-
Method Details
-
scan
Scans the given directory and pass files onto the given visitor.- Throws:
IOException
-
scanSingle
- Throws:
IOException
- Since:
- 1.532
-