Package com.atlassian.bamboo.utils.files
Class GlobTreeWalker
- java.lang.Object
-
- com.atlassian.bamboo.utils.files.GlobTreeWalker
-
public class GlobTreeWalker extends Object
Files tree walker, that uses a glob pattern to determine which files to visit
-
-
Constructor Summary
Constructors Constructor Description GlobTreeWalker()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
walkFileTree(Path rootDir, Function<Path,FileVisitResult> callback, String globPattern)
-
-
-
Method Detail
-
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
-
-