How to copy directory with all its contents to another directory?
To copy a directory with the entire child directories and files we can use a handy method provided by the commons-io
FileUtils.copyDirectory(). This method accept two parameters, the source directory and the destination directory. The source directory should be exist while if the destination directory doesn't exists it will be created.