public class RecursiveFolderDeleter
extends java.lang.Object
| Constructor and Description |
|---|
RecursiveFolderDeleter() |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteFolder(java.nio.file.Path path)
Deletes the specified folder, including all its contents and subfolders
|
void |
deleteFolder(java.nio.file.Path path,
java.util.List<java.nio.file.Path> excludeList)
Deletes the specified folder, including all its contents and subfolders, except those specified in the excludeList
|
void |
deleteFolder(java.lang.String path)
Deletes the specified folder, including all its contents and subfolders
|
void |
deleteFolder(java.lang.String path,
java.lang.String[] excludeList)
Deletes the specified folder, including all its contents and subfolders, except those specified in the excludeList
|
public void deleteFolder(java.lang.String path)
throws java.io.IOException
path - The folder to be deletedjava.io.IOException - Deleting failedpublic void deleteFolder(java.lang.String path,
java.lang.String[] excludeList)
throws java.io.IOException
path - The folder to be deletedexcludeList - List of files/folders that should not be deletedjava.io.IOException - Deleting failedpublic void deleteFolder(java.nio.file.Path path)
throws java.io.IOException
path - The folder to be deletedjava.io.IOException - Deleting failedpublic void deleteFolder(java.nio.file.Path path,
java.util.List<java.nio.file.Path> excludeList)
throws java.io.IOException
path - The folder to be deletedexcludeList - List of files/folders that should not be deletedjava.io.IOException - Deleting failed