'Copy the cover to the file like object ``dest``. Returns False
if no cover exists or dest is the same file as the current cover.
dest can also be a path in which case the cover is
copied to it iff the path is different from the current path (taking
case sensitivity into account).
If use_hardlink is True, a hard link will be created instead of the
file being copied. Use with care, because a hard link means that
modifying any one file will cause both files to be modified.
windows_atomic_move is an internally used parameter. You should not use
it in any code outside this module.'

def copy_cover_to(self, index, dest, index_is_id=False, windows_atomic_move=None, use_hardlink=False):

    id = (index if index_is_id else self.id(index))
    path = os.path.join(self.library_path, self.path(id, index_is_id=True), 'cover.jpg')
    if (windows_atomic_move is not None):
        if (not isinstance(dest, basestring)):
            raise Exception('Error,    you    must    pass    the    dest    as    a    path    when    using    windows_atomic_move')
        if (os.access(path, os.R_OK) and dest and (not samefile(dest, path))):
            windows_atomic_move.copy_path_to(path, dest)
            return True
    elif os.access(path, os.R_OK):
        try:
            f = lopen(path, 'rb')
        except (IOError, OSError):
            time.sleep(0.2)
        f = lopen(path, 'rb')
        with f:
            if hasattr(dest, 'write'):
                shutil.copyfileobj(f, dest)
                if hasattr(dest, 'flush'):
                    dest.flush()
                return True
            elif (dest and (not samefile(dest, path))):
                if use_hardlink:
                    try:
                        hardlink_file(path, dest)
                        return True
                    except:
                        pass
                with lopen(dest, 'wb') as d:
                    shutil.copyfileobj(f, d)
                return True
    return False
