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 voidDelete the givenPathwhether it is a directory or a simple file.static voiddeleteQuietly(Path path) Delete the givenPathwithout throwing any Exception if any occurs during the deletion.private static voidstatic Path
-
Constructor Details
-
Paths
public Paths()
-
-
Method Details
-
deleteQuietly
Delete the givenPathwithout 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 givenPathwhether 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
-