copy() works when both files are local or both files are remote.