Function for copying files and directories.
source file
destination
whether to follow symbolic links
if No, the 'cp' function can throw exceptions else errors are ignored
print information about errors or not (the parameter works if passErrors is Yes)
See Implementation
Function for copying files and directories.