Initally added copyDirSync()