Skip to content

can it compress an existing file like gzip?? #7

@javiercr2020

Description

@javiercr2020

Can use use the same syntax as gzip to compress an existing file? this does not work

import mgzip
import shutil

with open(filename, 'rb') as f_in:
    with mgzip.open(filename+'.gz', "wt", thread=8, blocksize=2*10**8) as f_out:
        shutil.copyfileobj(f_in, f_out)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions