@@ -9215,6 +9215,43 @@ def ListDirListFiles(infiles, dirlistfromtxt=False, compression="auto", compress
92159215 outarray , seekstart , seekend , skipchecksum , formatspecs , seektoend , verbose , returnfp )
92169216 return listarchivefiles
92179217
9218+ """
9219+ PyNeoFile compatibility layer
9220+ """
9221+
9222+ def make_empty_file_pointer_neo (fp , fmttype = None , checksumtype = 'crc32' , formatspecs = None , encoding = 'UTF-8' ):
9223+ return MakeEmptyFilePointer (fp , fmttype , checksumtype , formatspecs )
9224+
9225+ def make_empty_archive_file_pointer_neo (fp , fmttype = None , checksumtype = 'crc32' , formatspecs = None , encoding = 'UTF-8' ):
9226+ return make_empty_file_pointer_neo (fp , fmttype , checksumtype , formatspecs , encoding )
9227+
9228+ def make_empty_file_neo (outfile = None , fmttype = None , checksumtype = 'crc32' , formatspecs = None , encoding = 'UTF-8' , returnfp = False ):
9229+ return MakeEmptyFile (outfile , fmttype , "auto" , False , None , checksumtype , formatspecs , returnfp )
9230+
9231+ def make_empty_archive_file_neo (outfile = None , fmttype = None , checksumtype = 'crc32' , formatspecs = None , encoding = 'UTF-8' , returnfp = False ):
9232+ return make_empty_file_neo (outfile , fmttype , checksumtype , formatspecs , encoding , returnfp )
9233+
9234+ def pack_neo (infiles , outfile = None , formatspecs = None , checksumtypes = ["crc32" , "crc32" , "crc32" , "crc32" ], encoding = "UTF-8" , compression = "auto" , compression_level = None , returnfp = False ):
9235+ return PackCatFile (infiles , outfile , False , "auto" , compression , False , compression_level , compressionlistalt , False , checksumtypes , [], {}, formatspecs , False , returnfp )
9236+
9237+ def archive_to_array_neo (infile , formatspecs = None , listonly = False , skipchecksum = False , uncompress = True , returnfp = False ):
9238+ return CatFileToArray (infile , "auto" , 0 , 0 , listonly , True , uncompress , skipchecksum , formatspecs , False , returnfp )
9239+
9240+ def unpack_neo (infile , outdir = '.' , formatspecs = None , skipchecksum = False , uncompress = True , returnfp = False ):
9241+ return UnPackCatFile (infile , outdir , False , 0 , 0 , skipchecksum , formatspecs , True , True , False , False , returnfp )
9242+
9243+ def repack_neo (infile , outfile = None , formatspecs = None , checksumtypes = ["crc32" , "crc32" , "crc32" , "crc32" ], compression = "auto" , compression_level = None , returnfp = False ):
9244+ return RePackCatFile (infile , outfile , "auto" , compression , False , compression_level , compressionlistalt , False , 0 , 0 , checksumtypes , False , [], {}, formatspecs , False , False , returnfp )
9245+
9246+ def archivefilevalidate_neo (infile , formatspecs = None , verbose = False , return_details = False , returnfp = False ):
9247+ return CatFileValidate (infile , "auto" , formatspecs , False , verbose , returnfp )
9248+
9249+ def archivefilelistfiles_neo (infile , formatspecs = None , advanced = False , include_dirs = True , returnfp = False ):
9250+ return CatFileListFiles (infile , "auto" , 0 , 0 , False , formatspecs , False , True , advanced , returnfp )
9251+
9252+ def convert_foreign_to_neo (infile , outfile = None , formatspecs = None , checksumtypes = ["crc32" , "crc32" , "crc32" , "crc32" ], compression = "auto" , compression_level = None , returnfp = False ):
9253+ intmp = InFileToArray (infile , 0 , 0 , False , True , False , formatspecs , False , False )
9254+ return RePackCatFile (intmp , outfile , "auto" , compression , False , compression_level , compressionlistalt , False , 0 , 0 , checksumtypes , False , [], {}, formatspecs , False , False , returnfp )
92189255
92199256def download_file_from_ftp_file (url ):
92209257 urlparts = urlparse (url )
0 commit comments