Class FileUtil

java.lang.Object
org.apache.jackrabbit.core.fs.local.FileUtil

public final class FileUtil extends Object
Static utility methods for recursively copying and deleting files and directories.
  • Method Details

    • copy

      public static void copy(File src, File dest) throws IOException
      Recursively copies the given file or directory to the given destination.
      Parameters:
      src - source file or directory
      dest - destination file or directory
      Throws:
      IOException - if the file or directory cannot be copied
    • delete

      public static void delete(File f) throws IOException
      Recursively deletes the given file or directory.
      Parameters:
      f - file or directory
      Throws:
      IOException - if the file or directory cannot be deleted