| Constructor and Description |
|---|
Paths() |
| Modifier and Type | Method and Description |
|---|---|
static void |
delete(Path path)
Delete the given
Path whether it is a directory or a simple file. |
static void |
deleteQuietly(Path path)
Delete the given
Path without throwing any Exception if any
occurs during the deletion. |
static Path |
getParent(Path path) |
public static void deleteQuietly(Path path)
Path without throwing any Exception if any
occurs during the deletion. If the path is a directory, it will be
deleted recursively.path - the path to deletepublic static void delete(Path path) throws IOException
Path whether it is a directory or a simple file.
If the path is a directory, it will be deleted recursively.path - the path to deleteIOExceptionCopyright © 2023 Eclipse Foundation. All rights reserved.