@@ -8738,6 +8738,16 @@ def TarFileToArray(infile, seekstart=0, seekend=0, listonly=False, contentasfile
87388738 return listarrayfiles
87398739
87408740
8741+ def BSDTarFileToArray (infile , seekstart = 0 , seekend = 0 , listonly = False , contentasfile = True , skipchecksum = False , formatspecs = __file_format_dict__ , seektoend = False , returnfp = False ):
8742+ checkcompressfile = CheckCompressionSubType (infile , formatspecs , filestart , True )
8743+ if (IsNestedDict (formatspecs ) and checkcompressfile in formatspecs ):
8744+ formatspecs = formatspecs [checkcompressfile ]
8745+ fp = MkTempFile ()
8746+ fp = PackArchiveFileFromBSDTarFile (infile , fp , "auto" , True , None , compressionlistalt , "md5" , [], formatspecs , None , False , True )
8747+ listarrayfiles = ArchiveFileToArray (fp , "auto" , 0 , seekstart , seekend , listonly , contentasfile , True , skipchecksum , formatspecs , None , seektoend , returnfp )
8748+ return listarrayfiles
8749+
8750+
87418751def ZipFileToArray (infile , seekstart = 0 , seekend = 0 , listonly = False , contentasfile = True , skipchecksum = False , formatspecs = __file_format_dict__ , seektoend = False , returnfp = False ):
87428752 checkcompressfile = CheckCompressionSubType (infile , formatspecs , filestart , True )
87438753 if (IsNestedDict (formatspecs ) and checkcompressfile in formatspecs ):
@@ -10401,7 +10411,7 @@ def InFileListFiles(infile, fmttype="auto", filestart=0, seekstart=0, seekend=0,
1040110411 elif (checkcompressfile == formatspecs ['format_magic' ]):
1040210412 return NeoFileListFiles (infile , fmttype , filestart , seekstart , seekend , skipchecksum , formatspecs , saltkey , seektoend , verbose , newstyle , returnfp )
1040310413 else :
10404- return False
10414+ return BSDTarFileListFiles ( infile , formatspecs , verbose , returnfp )
1040510415 return False
1040610416
1040710417
0 commit comments