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 voiddeleteRecursively(Path... paths) Recursively deletes one or more files and/or directories.
-
Method Details
-
deleteRecursively
Recursively deletes one or more files and/or directories. If anIOExceptionis thrown while traversing a path, the error message will be recorded and a newIOExceptionthrown after traversing all other paths.- Parameters:
paths- Files and/or directories to delete- Throws:
IOException- failure to delete a path
-