Class Paths

java.lang.Object
org.eclipse.cbi.common.util.Paths

public class Paths extends Object
Collection of Path-related utility methods.
  • Constructor Details

    • Paths

      public Paths()
  • Method Details

    • deleteQuietly

      public static void deleteQuietly(Path path)
      Delete the given Path without throwing any Exception if any occurs during the deletion. If the path is a directory, it will be deleted recursively.
      Parameters:
      path - the path to delete
    • delete

      public static void delete(Path path) throws IOException
      Delete the given Path whether it is a directory or a simple file. If the path is a directory, it will be deleted recursively.
      Parameters:
      path - the path to delete
      Throws:
      IOException
    • doDelete

      private static void doDelete(Path path, boolean quiet) throws IOException
      Throws:
      IOException
    • getParent

      public static Path getParent(Path path)