Package org.apache.solr.util
Class DirectoryUtil
- java.lang.Object
-
- org.apache.solr.util.DirectoryUtil
-
public class DirectoryUtil extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
copyDirectoryContents(Path source, Path destination)
Recursively copy the contents of one directory into another.
-
-
-
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
-
-