(sourcestore, deststore)
Copies the files from the source storage object to the destination
    storage object using ``shutil.copyfileobj``.
Copies the files from the source storage object to the destination
    storage object using ``shutil.copyfileobj``.
Copies the files from the source storage object to the destination storage object using shutil . copyfileobj .
def copy_storage(sourcestore, deststore):
    """Copies the files from the source storage object to the destination
    storage object using ``shutil.copyfileobj``.
    """
    from shutil import copyfileobj

    for name in sourcestore.list():
        with sourcestore.open_file(name) as source:
            with deststore.create_file(name) as dest:
                copyfileobj(source, dest)
def copy_storage ( sourcestore , deststore ) : from shutil import copyfileobj for name in sourcestore . list ( ) : with sourcestore . open_file ( name ) as source : with deststore . create_file ( name ) as dest : copyfileobj ( source , dest )