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 Details

    • GlobTreeWalker

      public GlobTreeWalker()
  • Method Details

    • walkFileTree

      public static void walkFileTree(Path rootDir, Function<Path,FileVisitResult> callback, String globPattern) throws IOException
      Parameters:
      rootDir - directory to
      callback - a function to call on every matched file
      globPattern - a glob pattern against which files are tested
      Throws:
      IOException