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
Nested ClassesModifier and TypeClassDescriptionstatic classScans by filtering things out fromFileFilter.static classScans everything recursively.static classScans by using Ant GLOB syntax. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidscan(File dir, FileVisitor visitor) Scans the given directory and pass files onto the given visitor.protected final voidscanSingle(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
-