@@ -7330,7 +7330,7 @@ def StackedFoxFileValidate(infile, fmttype="auto", filestart=0, formatspecs=__fi
73307330 while True :
73317331 if outstartfile >= outfsize : # stop when function signals False
73327332 break
7333- is_valid_file = ArchiveFileValidate (infile , fmttype , filestart , formatspecs , seektoend , verbose , True )
7333+ is_valid_file = FoxFileValidate (infile , fmttype , filestart , formatspecs , seektoend , verbose , True )
73347334 if is_valid_file is False : # stop when function signals False
73357335 outretval .append (is_valid_file )
73367336 else :
@@ -8710,6 +8710,73 @@ def FoxFileListFiles(infile, fmttype="auto", filestart=0, seekstart=0, seekend=0
87108710 return True
87118711
87128712
8713+ def MultipleFoxFileListFiles (infile , fmttype = "auto" , filestart = 0 , seekstart = 0 , seekend = 0 , listonly = False , contentasfile = True , uncompress = True , skipchecksum = False , formatspecs = __file_format_multi_dict__ , seektoend = False , returnfp = False ):
8714+ if (isinstance (infile , (list , tuple , ))):
8715+ pass
8716+ else :
8717+ infile = [infile ]
8718+ outretval = {}
8719+ for curfname in infile :
8720+ outretval [curfname ] = FoxFileListFiles (infile , fmttype , filestart , seekstart , seekend , skipchecksum , formatspecs , seektoend , verbose , newstyle , returnfp )
8721+ return outretval
8722+
8723+
8724+ def StackedArchiveListFiles (infile , fmttype = "auto" , filestart = 0 , seekstart = 0 , seekend = 0 , skipchecksum = False , formatspecs = __file_format_multi_dict__ , seektoend = False , verbose = False , newstyle = False , returnfp = False ):
8725+ outretval = []
8726+ outstartfile = filestart
8727+ outfsize = float ('inf' )
8728+ while True :
8729+ if outstartfile >= outfsize : # stop when function signals False
8730+ break
8731+ list_file_retu = ArchiveFileListFiles (infile , fmttype , outstartfile , seekstart , seekend , skipchecksum , formatspecs , seektoend , verbose , newstyle , True )
8732+ if list_file_retu is False : # stop when function signals False
8733+ outretval .append (list_file_retu )
8734+ else :
8735+ outretval .append (True )
8736+ infile = list_file_retu
8737+ outstartfile = infile .tell ()
8738+ try :
8739+ infile .seek (0 , 2 )
8740+ except OSError :
8741+ SeekToEndOfFile (infile )
8742+ except ValueError :
8743+ SeekToEndOfFile (infile )
8744+ outfsize = infile .tell ()
8745+ infile .seek (outstartfile , 0 )
8746+ if (returnfp ):
8747+ return infile
8748+ else :
8749+ infile .close ()
8750+ return outretval
8751+
8752+
8753+ def MultipleStackedFoxFileListFiles (infile , fmttype = "auto" , filestart = 0 , seekstart = 0 , seekend = 0 , listonly = False , contentasfile = True , uncompress = True , skipchecksum = False , formatspecs = __file_format_multi_dict__ , seektoend = False , returnfp = False ):
8754+ if (isinstance (infile , (list , tuple , ))):
8755+ pass
8756+ else :
8757+ infile = [infile ]
8758+ outretval = {}
8759+ for curfname in infile :
8760+ outretval [curfname ] = StackedArchiveListFiles (curfname , fmttype , filestart , seekstart , seekend , listonly , contentasfile , uncompress , skipchecksum , formatspecs , seektoend , True )
8761+ return outretval
8762+
8763+
8764+ def FoxFileStringToArray (instr , filestart = 0 , seekstart = 0 , seekend = 0 , listonly = False , contentasfile = True , skipchecksum = False , formatspecs = __file_format_multi_dict__ , seektoend = False , returnfp = False ):
8765+ checkcompressfile = CheckCompressionSubType (infile , formatspecs , filestart , True )
8766+ if (IsNestedDict (formatspecs ) and checkcompressfile in formatspecs ):
8767+ formatspecs = formatspecs [checkcompressfile ]
8768+ fp = MkTempFile (instr )
8769+ listarrayfiles = FoxFileToArray (fp , "auto" , filestart , seekstart , seekend , listonly , contentasfile , True , skipchecksum , formatspecs , seektoend , returnfp )
8770+ return listarrayfiles
8771+
8772+
8773+ def FoxFileStringListFiles (instr , seekstart = 0 , seekend = 0 , skipchecksum = False , formatspecs = __file_format_multi_dict__ , seektoend = False , verbose = False , newstyle = False , returnfp = False ):
8774+ fp = MkTempFile (instr )
8775+ listarrayfiles = FoxFileListFiles (
8776+ instr , seekstart , seekend , skipchecksum , formatspecs , seektoend , verbose , newstyle , returnfp )
8777+ return listarrayfiles
8778+
8779+
87138780def FoxFileStringListFiles (instr , seekstart = 0 , seekend = 0 , skipchecksum = False , formatspecs = __file_format_multi_dict__ , seektoend = False , verbose = False , newstyle = False , returnfp = False ):
87148781 fp = MkTempFile (instr )
87158782 listarrayfiles = FoxFileListFiles (
0 commit comments