Package org.eclipse.cbi.common.util
Class Paths
java.lang.Object
org.eclipse.cbi.common.util.Paths
Collection of
Path
-related utility methods.-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
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.private static void
static Path
-
Constructor Details
-
Paths
public Paths()
-
-
Method Details
-
deleteQuietly
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
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
-
doDelete
- Throws:
IOException
-
getParent
-