copy To Temp
Copies the specified directory to a temporary directory, excluding files and folders based on the exclusion patterns.
Parameters
source Dir Path
The path of the directory to be copied.
Throws
If there is an issue copying the directory.