@@ -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+
87478757def 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 ):
@@ -10407,7 +10417,7 @@ def InFileListFiles(infile, fmttype="auto", filestart=0, seekstart=0, seekend=0,
1040710417 elif (checkcompressfile == formatspecs ['format_magic' ]):
1040810418 return CatFileListFiles (infile , fmttype , filestart , seekstart , seekend , skipchecksum , formatspecs , saltkey , seektoend , verbose , newstyle , returnfp )
1040910419 else :
10410- return False
10420+ return BSDTarFileListFiles ( infile , formatspecs , verbose , returnfp )
1041110421 return False
1041210422
1041310423
0 commit comments