public interface RecursiveDelete
FileSystemProvider
supports efficient recursive
deletes.Modifier and Type | Method and Description |
---|---|
void |
deleteRecursive(Path path)
Deletes the given path or directory recursively.
|
boolean |
deleteRecursiveIfExists(Path path)
Deletes the given path or directory recursively, if it exists.
|
void deleteRecursive(Path path) throws IOException
path
- the path to the file or directoryNoSuchFileException
- if the path does not existIOException
- if an I/O error occurs while deleting the pathboolean deleteRecursiveIfExists(Path path) throws IOException
path
- the path to the file or directorytrue
if path existed and was deleted, false
if
the path could not be deleted because it did not existIOException
- if an I/O error occurs while deleting the path