spring-framework / org.springframework.util / FileSystemUtils / copyRecursively

copyRecursively

open static fun copyRecursively(src: File, dest: File): Unit

Recursively copy the contents of the src file/directory to the dest file/directory.

Parameters

src - the source directory

dest - the destination directory

Exceptions

IOException - in the case of I/O errors

open static fun copyRecursively(src: Path, dest: Path): Unit

Recursively copy the contents of the src file/directory to the dest file/directory.

Parameters

src - the source directory

dest - the destination directory

Exceptions

IOException - in the case of I/O errors

Since
5.0