Skip to content

Commit 89ad5d2

Browse files
committed
Small update
1 parent 043bcc8 commit 89ad5d2

1 file changed

Lines changed: 0 additions & 26 deletions

File tree

pyarchivefile/pyarchivefile.py

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -8297,15 +8297,6 @@ def MultipleArchiveFilesToArray(infile, fmttype="auto", filestart=0, seekstart=0
82978297
return MultipleArchiveFileToArray(infile, fmttype, filestart, seekstart, seekend, listonly, contentasfile, uncompress, skipchecksum, formatspecs, saltkey, seektoend, returnfp)
82988298

82998299

8300-
def ArchiveFileStringToArray(instr, filestart=0, seekstart=0, seekend=0, listonly=False, contentasfile=True, skipchecksum=False, formatspecs=__file_format_multi_dict__, saltkey=None, seektoend=False, returnfp=False):
8301-
checkcompressfile = CheckCompressionSubType(infile, formatspecs, filestart, True)
8302-
if(IsNestedDict(formatspecs) and checkcompressfile in formatspecs):
8303-
formatspecs = formatspecs[checkcompressfile]
8304-
fp = MkTempFile(instr)
8305-
listarrayfiles = ArchiveFileToArray(fp, "auto", filestart, seekstart, seekend, listonly, contentasfile, True, skipchecksum, formatspecs, saltkey, seektoend, returnfp)
8306-
return listarrayfiles
8307-
8308-
83098300
def TarFileToArray(infile, seekstart=0, seekend=0, listonly=False, contentasfile=True, skipchecksum=False, formatspecs=__file_format_dict__, seektoend=False, returnfp=False):
83108301
checkcompressfile = CheckCompressionSubType(infile, formatspecs, filestart, True)
83118302
if(IsNestedDict(formatspecs) and checkcompressfile in formatspecs):
@@ -8882,11 +8873,6 @@ def RePackMultipleArchiveFile(infiles, outfile, fmttype="auto", compression="aut
88828873
return True
88838874
return returnout
88848875

8885-
def RePackArchiveFileFromString(instr, outfile, fmttype="auto", compression="auto", compresswholefile=True, compressionlevel=None, compressionuselist=compressionlistalt, followlink=False, filestart=0, seekstart=0, seekend=0, checksumtype=["md5", "md5", "md5", "md5", "md5"], skipchecksum=False, extradata=[], jsondata={}, formatspecs=__file_format_multi_dict__, insaltkey=None, outsaltkey=None, seektoend=False, verbose=False, returnfp=False):
8886-
fp = MkTempFile(instr)
8887-
listarrayfiles = RePackArchiveFile(fp, outfile, fmttype, compression, compresswholefile, compressionlevel, compressionuselist, followlink, filestart, seekstart, seekend, checksumtype, skipchecksum, extradata, jsondata, formatspecs, insaltkey, outsaltkey, seektoend, verbose, returnfp)
8888-
return listarrayfiles
8889-
88908876

88918877
def PackArchiveFileFromListDir(infiles, outfile, dirlistfromtxt=False, fmttype="auto", compression="auto", compresswholefile=True, compressionlevel=None, compressionuselist=compressionlistalt, followlink=False, filestart=0, seekstart=0, seekend=0, checksumtype=["md5", "md5", "md5", "md5", "md5"], skipchecksum=False, extradata=[], jsondata={}, formatspecs=__file_format_dict__, saltkey=None, seektoend=False, verbose=False, returnfp=False):
88928878
outarray = MkTempFile()
@@ -9150,12 +9136,6 @@ def UnPackArchiveFile(infile, outdir=None, followlink=False, filestart=0, seekst
91509136
else:
91519137
return True
91529138

9153-
9154-
def UnPackArchiveFileString(instr, outdir=None, followlink=False, filestart=0, seekstart=0, seekend=0, skipchecksum=False, formatspecs=__file_format_multi_dict__, saltkey=None, seektoend=False, verbose=False, returnfp=False):
9155-
fp = MkTempFile(instr)
9156-
listarrayfiles = UnPackArchiveFile(fp, outdir, followlink, filestart, seekstart, seekend, skipchecksum, formatspecs, saltkey, seektoend, verbose, returnfp)
9157-
return listarrayfiles
9158-
91599139
def ftype_to_str(ftype):
91609140
mapping = {
91619141
0: "file", # file
@@ -9320,12 +9300,6 @@ def MultipleStackedArchiveFileListFiles(infile, fmttype="auto", filestart=0, see
93209300
return outretval
93219301

93229302

9323-
def ArchiveFileStringListFiles(instr, filestart=0, seekstart=0, seekend=0, skipchecksum=False, formatspecs=__file_format_multi_dict__, saltkey=None, seektoend=False, verbose=False, newstyle=False, returnfp=False):
9324-
fp = MkTempFile(instr)
9325-
listarrayfiles = ArchiveFileListFiles(instr, "auto", filestart, seekstart, seekend, skipchecksum, formatspecs, saltkey, seektoend, verbose, newstyle, returnfp)
9326-
return listarrayfiles
9327-
9328-
93299303
def TarFileListFiles(infile, formatspecs=__file_format_multi_dict__, verbose=False, returnfp=False):
93309304
if(isinstance(infile, (list, tuple, ))):
93319305
infile = infile[0]

0 commit comments

Comments
 (0)