Interface PathTreeUtils


public interface PathTreeUtils
  • Method Summary

    Static Methods
    Modifier and Type
    Method
    Description
    static String
    asString(Path path, String separator)
    Returns a path as a string using the specified separator.
    static boolean
    containsCaseSensitivePath(PathTree pathTree, String relativePath)
    Checks whether a path tree contains a given relative path respecting case sensitivity even on Windows.
  • Method Details

    • asString

      static String asString(Path path, String separator)
      Returns a path as a string using the specified separator.
      Parameters:
      path - path to convert to a string
      separator - path element separator
      Returns:
      string representation of a path
    • containsCaseSensitivePath

      static boolean containsCaseSensitivePath(PathTree pathTree, String relativePath)
      Checks whether a path tree contains a given relative path respecting case sensitivity even on Windows.

      Path API on Windows may resolve templates to Templates. This method helps verify whether a given relative path actually exists.

      Parameters:
      pathTree - path tree
      relativePath - relative path to check
      Returns:
      true if a path tree contains a given relative path