Package com.atlassian.bamboo.utils.files
Class GlobTreeWalker
java.lang.Object
com.atlassian.bamboo.utils.files.GlobTreeWalker
Files tree walker, that uses a glob pattern to determine which files to visit
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
walkFileTree
(Path rootDir, Function<Path, FileVisitResult> callback, String globPattern)
-
Constructor Details
-
GlobTreeWalker
public GlobTreeWalker()
-
-
Method Details
-
walkFileTree
public static void walkFileTree(Path rootDir, Function<Path, FileVisitResult> callback, String globPattern) throws IOException- Parameters:
rootDir
- directory tocallback
- a function to call on every matched fileglobPattern
- a glob pattern against which files are tested- Throws:
IOException
-