copyTo

Copy a file or directory to a target file or directory.

This function essentially behaves like the unix shell command cp -r with just asingle source input.

void
copyTo
(
alias copyCondition = (
a
,
b
)
)
()

Parameters

src
Type: Path

The path to a file or a directory.

dest
Type: Path

The path to a file or a directory. If src is a directory, dest must be an existing directory.

Throws

PathException

Examples

Meta