the big format
This commit is contained in:
@ -1,9 +1,11 @@
|
||||
import io
|
||||
import tarfile
|
||||
|
||||
|
||||
def raw_to_tar(raw_object):
|
||||
tarball = io.BytesIO(raw_object)
|
||||
return tarfile.open(fileobj=tarball, mode='r:gz')
|
||||
tarball = io.BytesIO(raw_object)
|
||||
return tarfile.open(fileobj=tarball, mode='r:gz')
|
||||
|
||||
|
||||
def extract_file_from_tar(tar, file_name):
|
||||
return tar.extractfile(tar.getmember(file_name))
|
||||
return tar.extractfile(tar.getmember(file_name))
|
||||
|
Reference in New Issue
Block a user