Копирование файлов в Питоне — отличие shutil. copyfile от shutil. copy

Копирование файлов в Питоне - отличие shutil.copyfile от shutil.copy
>>> import shutil #
>>> shutil.copy(r'/home/albaz/.mozilla/firefox/vtdayt57.default/cookies.sqlite', r'/home/albaz')
>>> - все происходит номально. А если

  • shutil.copyfile(src, dst)
    Copy the contents (no metadata) of the file named src to a file named dst. dst must be the complete target file name; look at shutil.copy() for a copy that accepts a target directory path. If src and dst are the same files, Error is raised. The destination location must be writable; otherwise, an IOError exception will be raised. If dst already exists, it will be replaced. Special files such as character or block devices and pipes cannot be copied with this function. src and dst are path names given as strings.

    shutil.copy(src, dst)
    Copy the file src to the file or directory dst. If dst is a directory, a file with the same basename as src is created (or overwritten) in the directory specified. Permission bits are copied. src and dst are path names given as strings.