Class FileUtils

java.lang.Object
org.forgerock.util.test.FileUtils

public final class FileUtils extends Object
Utilities for working with files within unit tests.
  • Method Details

    • deleteRecursively

      public static void deleteRecursively(Path... paths) throws IOException
      Recursively deletes one or more files and/or directories. If an IOException is thrown while traversing a path, the error message will be recorded and a new IOException thrown after traversing all other paths.
      Parameters:
      paths - Files and/or directories to delete
      Throws:
      IOException - failure to delete a path