Class DirectoryUtil


  • public class DirectoryUtil
    extends Object
    • Method Detail

      • copyDirectoryContents

        public static void copyDirectoryContents​(Path source,
                                                 Path destination)
                                          throws IOException
        Recursively copy the contents of one directory into another. For example:
           copyDirectory(Path.of("src"), Path.of("dst"))
         
        will copy the contents of src directly into dst. This will not create a new "src" folder inside of dst.
        Throws:
        IOException