public class Files extends Object
Modifier and Type | Method and Description |
---|---|
static void |
delete(Path directory)
Deletes the given directory structure including all sub directories.
|
static void |
removeChildren(Path directory)
Removes all children (files and directories) of the given directory.
|
public static void delete(Path directory) throws IOException
directory
- the directory to delete (along with all sub directories)IOException
- in case of an io error while deleting the files and directoriespublic static void removeChildren(Path directory) throws IOException
directory
- the containing the children to delete (along with all sub directories)IOException
- in case of an io error while deleting the files and directoriesCopyright © 2016. All rights reserved.