Skip to content

Commit 008ef51

Browse files
committed
Small update
1 parent 5bc9bda commit 008ef51

1 file changed

Lines changed: 0 additions & 26 deletions

File tree

pycatfile/pycatfile.py

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -8302,15 +8302,6 @@ def MultipleCatFilesToArray(infile, fmttype="auto", filestart=0, seekstart=0, se
83028302
return MultipleCatFileToArray(infile, fmttype, filestart, seekstart, seekend, listonly, contentasfile, uncompress, skipchecksum, formatspecs, saltkey, seektoend, returnfp)
83038303

83048304

8305-
def CatFileStringToArray(instr, filestart=0, seekstart=0, seekend=0, listonly=False, contentasfile=True, skipchecksum=False, formatspecs=__file_format_multi_dict__, saltkey=None, seektoend=False, returnfp=False):
8306-
checkcompressfile = CheckCompressionSubType(infile, formatspecs, filestart, True)
8307-
if(IsNestedDict(formatspecs) and checkcompressfile in formatspecs):
8308-
formatspecs = formatspecs[checkcompressfile]
8309-
fp = MkTempFile(instr)
8310-
listarrayfiles = CatFileToArray(fp, "auto", filestart, seekstart, seekend, listonly, contentasfile, True, skipchecksum, formatspecs, saltkey, seektoend, returnfp)
8311-
return listarrayfiles
8312-
8313-
83148305
def TarFileToArray(infile, seekstart=0, seekend=0, listonly=False, contentasfile=True, skipchecksum=False, formatspecs=__file_format_dict__, seektoend=False, returnfp=False):
83158306
checkcompressfile = CheckCompressionSubType(infile, formatspecs, filestart, True)
83168307
if(IsNestedDict(formatspecs) and checkcompressfile in formatspecs):
@@ -8887,11 +8878,6 @@ def RePackMultipleCatFile(infiles, outfile, fmttype="auto", compression="auto",
88878878
return True
88888879
return returnout
88898880

8890-
def RePackCatFileFromString(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):
8891-
fp = MkTempFile(instr)
8892-
listarrayfiles = RePackCatFile(fp, outfile, fmttype, compression, compresswholefile, compressionlevel, compressionuselist, followlink, filestart, seekstart, seekend, checksumtype, skipchecksum, extradata, jsondata, formatspecs, insaltkey, outsaltkey, seektoend, verbose, returnfp)
8893-
return listarrayfiles
8894-
88958881

88968882
def PackCatFileFromListDir(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):
88978883
outarray = MkTempFile()
@@ -9155,12 +9141,6 @@ def UnPackCatFile(infile, outdir=None, followlink=False, filestart=0, seekstart=
91559141
else:
91569142
return True
91579143

9158-
9159-
def UnPackCatFileString(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):
9160-
fp = MkTempFile(instr)
9161-
listarrayfiles = UnPackCatFile(fp, outdir, followlink, filestart, seekstart, seekend, skipchecksum, formatspecs, saltkey, seektoend, verbose, returnfp)
9162-
return listarrayfiles
9163-
91649144
def ftype_to_str(ftype):
91659145
mapping = {
91669146
0: "file", # file
@@ -9325,12 +9305,6 @@ def MultipleStackedCatFileListFiles(infile, fmttype="auto", filestart=0, seeksta
93259305
return outretval
93269306

93279307

9328-
def CatFileStringListFiles(instr, filestart=0, seekstart=0, seekend=0, skipchecksum=False, formatspecs=__file_format_multi_dict__, saltkey=None, seektoend=False, verbose=False, newstyle=False, returnfp=False):
9329-
fp = MkTempFile(instr)
9330-
listarrayfiles = CatFileListFiles(instr, "auto", filestart, seekstart, seekend, skipchecksum, formatspecs, saltkey, seektoend, verbose, newstyle, returnfp)
9331-
return listarrayfiles
9332-
9333-
93349308
def TarFileListFiles(infile, formatspecs=__file_format_multi_dict__, verbose=False, returnfp=False):
93359309
if(isinstance(infile, (list, tuple, ))):
93369310
infile = infile[0]

0 commit comments

Comments
 (0)