Copies folders like file.copy except it replicates links correctly on unix-like systems. Based on http://stackoverflow.com/a/30107868/1380598.

dir.copy(from, to)

Arguments

from

character indicating the path to the directory to be copied.

to

character indicating the path to which the directory will be copied.

Value

Logical indicating success or failure.

Author

Zach Foster

Alex Chubaty