Skip to content

Commit 8594ad7

Browse files
author
Kazuki Suzuki Przyborowski
committed
Update pyarchivefile.py
1 parent d4c65ac commit 8594ad7

1 file changed

Lines changed: 4 additions & 14 deletions

File tree

pyarchivefile.py

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8628,9 +8628,9 @@ def UnPackArchiveFile(infile, outdir=None, followlink=False, filestart=0, seekst
86288628
return True
86298629

86308630

8631-
def UnPackArchiveFileString(instr, outdir=None, followlink=False, seekstart=0, seekend=0, skipchecksum=False, formatspecs=__file_format_multi_dict__, seektoend=False, verbose=False, returnfp=False):
8631+
def UnPackArchiveFileString(instr, outdir=None, followlink=False, filestart=0, seekstart=0, seekend=0, skipchecksum=False, formatspecs=__file_format_multi_dict__, seektoend=False, verbose=False, returnfp=False):
86328632
fp = MkTempFile(instr)
8633-
listarrayfiles = UnPackArchiveFile(fp, outdir, followlink, seekstart, seekend, skipchecksum, formatspecs, seektoend, verbose, returnfp)
8633+
listarrayfiles = UnPackArchiveFile(fp, outdir, followlink, filestart, seekstart, seekend, skipchecksum, formatspecs, seektoend, verbose, returnfp)
86348634
return listarrayfiles
86358635

86368636
def ftype_to_str(ftype):
@@ -8781,19 +8781,9 @@ def MultipleStackedArchiveFileListFiles(infile, fmttype="auto", filestart=0, see
87818781
return outretval
87828782

87838783

8784-
def ArchiveFileStringToArray(instr, filestart=0, seekstart=0, seekend=0, listonly=False, contentasfile=True, skipchecksum=False, formatspecs=__file_format_multi_dict__, seektoend=False, returnfp=False):
8785-
checkcompressfile = CheckCompressionSubType(infile, formatspecs, filestart, True)
8786-
if(IsNestedDict(formatspecs) and checkcompressfile in formatspecs):
8787-
formatspecs = formatspecs[checkcompressfile]
8788-
fp = MkTempFile(instr)
8789-
listarrayfiles = ArchiveFileToArray(fp, "auto", filestart, seekstart, seekend, listonly, contentasfile, True, skipchecksum, formatspecs, seektoend, returnfp)
8790-
return listarrayfiles
8791-
8792-
8793-
def ArchiveFileStringListFiles(instr, seekstart=0, seekend=0, skipchecksum=False, formatspecs=__file_format_multi_dict__, seektoend=False, verbose=False, newstyle=False, returnfp=False):
8784+
def ArchiveFileStringListFiles(instr, filestart=0, seekstart=0, seekend=0, skipchecksum=False, formatspecs=__file_format_multi_dict__, seektoend=False, verbose=False, newstyle=False, returnfp=False):
87948785
fp = MkTempFile(instr)
8795-
listarrayfiles = ArchiveFileListFiles(
8796-
instr, seekstart, seekend, skipchecksum, formatspecs, seektoend, verbose, newstyle, returnfp)
8786+
listarrayfiles = ArchiveFileListFiles(instr, "auto", filestart, seekstart, seekend, skipchecksum, formatspecs, seektoend, verbose, newstyle, returnfp)
87978787
return listarrayfiles
87988788

87998789

0 commit comments

Comments
 (0)