(src, dst, *, follow_symlinks=True)
return dst
Copy data and metadata. Return the file's destination.

    Metadata is copied with copystat(). Please see the copystat function
    for more information.

    The destination may be a directory.

    If follow_symlinks is false, symlinks won't be followed. This
    resembles GNU's "cp -P src dst".
Copy data and metadata. Return the file's destination.
Copy data and metadata . Return the file s destination .
def copy2(src, dst, *, follow_symlinks=True):
    """Copy data and metadata. Return the file's destination.

    Metadata is copied with copystat(). Please see the copystat function
    for more information.

    The destination may be a directory.

    If follow_symlinks is false, symlinks won't be followed. This
    resembles GNU's "cp -P src dst".
    """
    if os.path.isdir(dst):
        dst = os.path.join(dst, os.path.basename(src))
    copyfile(src, dst, follow_symlinks=follow_symlinks)
    copystat(src, dst, follow_symlinks=follow_symlinks)
    return dst
def copy2 ( src , dst , * , follow_symlinks = True ) : if os . path . isdir ( dst ) : dst = os . path . join ( dst , os . path . basename ( src ) ) copyfile ( src , dst , follow_symlinks = follow_symlinks ) copystat ( src , dst , follow_symlinks = follow_symlinks ) return dst