Skip to content

Commit 1259360

Browse files
committed
Small update
1 parent 081e767 commit 1259360

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

pyfoxfile/pyfoxfile.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8744,6 +8744,16 @@ def TarFileToArray(infile, seekstart=0, seekend=0, listonly=False, contentasfile
87448744
return listarrayfiles
87458745

87468746

8747+
def BSDTarFileToArray(infile, seekstart=0, seekend=0, listonly=False, contentasfile=True, skipchecksum=False, formatspecs=__file_format_dict__, seektoend=False, returnfp=False):
8748+
checkcompressfile = CheckCompressionSubType(infile, formatspecs, filestart, True)
8749+
if(IsNestedDict(formatspecs) and checkcompressfile in formatspecs):
8750+
formatspecs = formatspecs[checkcompressfile]
8751+
fp = MkTempFile()
8752+
fp = PackArchiveFileFromBSDTarFile(infile, fp, "auto", True, None, compressionlistalt, "md5", [], formatspecs, None, False, True)
8753+
listarrayfiles = ArchiveFileToArray(fp, "auto", 0, seekstart, seekend, listonly, contentasfile, True, skipchecksum, formatspecs, None, seektoend, returnfp)
8754+
return listarrayfiles
8755+
8756+
87478757
def ZipFileToArray(infile, seekstart=0, seekend=0, listonly=False, contentasfile=True, skipchecksum=False, formatspecs=__file_format_dict__, seektoend=False, returnfp=False):
87488758
checkcompressfile = CheckCompressionSubType(infile, formatspecs, filestart, True)
87498759
if(IsNestedDict(formatspecs) and checkcompressfile in formatspecs):
@@ -10406,7 +10416,7 @@ def InFileListFiles(infile, fmttype="auto", filestart=0, seekstart=0, seekend=0,
1040610416
elif(checkcompressfile == formatspecs['format_magic']):
1040710417
return FoxFileListFiles(infile, fmttype, filestart, seekstart, seekend, skipchecksum, formatspecs, saltkey, seektoend, verbose, newstyle, returnfp)
1040810418
else:
10409-
return False
10419+
return BSDTarFileListFiles(infile, formatspecs, verbose, returnfp)
1041010420
return False
1041110421

1041210422

0 commit comments

Comments
 (0)