Fix copyDirRecursive error callback