protected function copyOptions()
{
$sys = strtoupper(PHP_OS);
if (substr($sys, 0, 3) == "WIN") {
// Copy all files recursively, verifies each new file and overwrites existing files without prompting you.
$copyOptions = "/E /V /Y";
} elseif ($sys == "LINUX") {
// Preserve date creation attribute, copy all files recursively and treat destination as a normal file
$copyOptions = "-pRT";
} else {
$copyOptions = "-pR";
// MacOS
}
return $copyOptions;
}