Package org.eclipse.cbi.common.util
Class Paths
- java.lang.Object
-
- org.eclipse.cbi.common.util.Paths
-
-
Constructor Summary
Constructors Constructor Description Paths()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
delete(Path path)
Delete the givenPath
whether it is a directory or a simple file.static void
deleteQuietly(Path path)
Delete the givenPath
without throwing any Exception if any occurs during the deletion.static Path
getParent(Path path)
-
-
-
Method Detail
-
deleteQuietly
public static void deleteQuietly(Path path)
Delete the givenPath
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 givenPath
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
-
-