Class PathUtil

java.lang.Object
jodd.io.PathUtil

public class PathUtil extends Object
  • Constructor Details

    • PathUtil

      public PathUtil()
  • Method Details

    • resolve

      public static Path resolve(Path base, String child)
      Resolves subpath in safer way. For some reason, if child starts with a separator it gets resolved as a full path, ignoring the base. This method acts different.
    • resolve

      public static Path resolve(Path path, String... childs)
    • readString

      public static String readString(Path path) throws IOException
      Reads path content.
      Throws:
      IOException
    • deleteFileTree

      public static void deleteFileTree(Path directory) throws IOException
      Deletes a directory recursively.
      Throws:
      IOException