copyFile and copyDir work for any conventional case