Class TestFileUtil


  • public final class TestFileUtil
    extends Object
    Test file utitlities.
    • Method Detail

      • deleteDirectory

        public static void deleteDirectory​(Path path)
                                    throws IOException
        Deletes directory along with all its contents.
        Parameters:
        path - The directory path. May not be null;
        Throws:
        IOException - if any I/O error occurs.
      • copyDirectory

        public static void copyDirectory​(Path sourcePath,
                                         Path targetPath)
                                  throws IOException
        Copies a directory along with all its contents to a target directory.
        Parameters:
        sourcePath - The path to the directory to copy. May not be null.
        targetPath - The path to the target directory. May not be null.
        Throws:
        IOException - if any I/O error occurs.