Also test IOErrors in copytree().