Package org.forgerock.util.test
Class FileUtils
java.lang.Object
org.forgerock.util.test.FileUtils
Utilities for working with files within unit tests.
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
deleteRecursively
(Path... paths) Recursively deletes one or more files and/or directories.
-
Method Details
-
deleteRecursively
Recursively deletes one or more files and/or directories. If anIOException
is thrown while traversing a path, the error message will be recorded and a newIOException
thrown after traversing all other paths.- Parameters:
paths
- Files and/or directories to delete- Throws:
IOException
- failure to delete a path
-