Class PathFinder

java.lang.Object
io.nosqlbench.nb.api.nbio.PathFinder

public class PathFinder extends Object
A central API for finding and accessing Paths which are either in the classpath or in the file system, or both.
  • Constructor Details

    • PathFinder

      public PathFinder()
  • Method Details

    • find

      public static Optional<Path> find(String... names)
      Find exactly zero or one matching Paths, and return an Optional of Path. Or, if more than one are found, throw a basic error.
      Parameters:
      names - The names of paths to find, with tailing slashes signifying directories
      Returns:
      An optional Path
      Throws:
      BasicError - if there is more than one matching path found.