Class FileUtils

java.lang.Object
io.github.intisy.gradle.github.utils.FileUtils

public class FileUtils extends Object
Author: Finn Birich
  • Constructor Details

    • FileUtils

      public FileUtils()
  • Method Details

    • copyDirectory

      public static void copyDirectory(Path sourceDir, Path destDir) throws IOException
      Copies a directory from the source path to the destination path.
      Parameters:
      sourceDir - the path to the source directory
      destDir - the path to the destination directory
      Throws:
      IOException - if an I/O error occurs
    • deleteDirectory

      public static void deleteDirectory(Path dir) throws IOException
      Deletes a directory and all its contents.
      Parameters:
      dir - the path to the directory to delete
      Throws:
      IOException - if an I/O error occurs