@@ -9203,6 +9203,43 @@ def ListDirListFiles(infiles, dirlistfromtxt=False, compression="auto", compress
92039203 outarray , seekstart , seekend , skipchecksum , formatspecs , seektoend , verbose , returnfp )
92049204 return listarchivefiles
92059205
9206+ """
9207+ PyNeoFile compatibility layer
9208+ """
9209+
9210+ def make_empty_file_pointer_neo (fp , fmttype = None , checksumtype = 'crc32' , formatspecs = None , encoding = 'UTF-8' ):
9211+ return MakeEmptyFilePointer (fp , fmttype , checksumtype , formatspecs )
9212+
9213+ def make_empty_archive_file_pointer_neo (fp , fmttype = None , checksumtype = 'crc32' , formatspecs = None , encoding = 'UTF-8' ):
9214+ return make_empty_file_pointer_neo (fp , fmttype , checksumtype , formatspecs , encoding )
9215+
9216+ def make_empty_file_neo (outfile = None , fmttype = None , checksumtype = 'crc32' , formatspecs = None , encoding = 'UTF-8' , returnfp = False ):
9217+ return MakeEmptyFile (outfile , fmttype , "auto" , False , None , checksumtype , formatspecs , returnfp )
9218+
9219+ def make_empty_archive_file_neo (outfile = None , fmttype = None , checksumtype = 'crc32' , formatspecs = None , encoding = 'UTF-8' , returnfp = False ):
9220+ return make_empty_file_neo (outfile , fmttype , checksumtype , formatspecs , encoding , returnfp )
9221+
9222+ def pack_neo (infiles , outfile = None , formatspecs = None , checksumtypes = ["crc32" , "crc32" , "crc32" , "crc32" ], encoding = "UTF-8" , compression = "auto" , compression_level = None , returnfp = False ):
9223+ return PackArchiveFile (infiles , outfile , False , "auto" , compression , False , compression_level , compressionlistalt , False , checksumtypes , [], {}, formatspecs , False , returnfp )
9224+
9225+ def archive_to_array_neo (infile , formatspecs = None , listonly = False , skipchecksum = False , uncompress = True , returnfp = False ):
9226+ return ArchiveFileToArray (infile , "auto" , 0 , 0 , listonly , True , uncompress , skipchecksum , formatspecs , False , returnfp )
9227+
9228+ def unpack_neo (infile , outdir = '.' , formatspecs = None , skipchecksum = False , uncompress = True , returnfp = False ):
9229+ return UnPackArchiveFile (infile , outdir , False , 0 , 0 , skipchecksum , formatspecs , True , True , False , False , returnfp )
9230+
9231+ def repack_neo (infile , outfile = None , formatspecs = None , checksumtypes = ["crc32" , "crc32" , "crc32" , "crc32" ], compression = "auto" , compression_level = None , returnfp = False ):
9232+ return RePackArchiveFile (infile , outfile , "auto" , compression , False , compression_level , compressionlistalt , False , 0 , 0 , checksumtypes , False , [], {}, formatspecs , False , False , returnfp )
9233+
9234+ def archivefilevalidate_neo (infile , formatspecs = None , verbose = False , return_details = False , returnfp = False ):
9235+ return ArchiveFileValidate (infile , "auto" , formatspecs , False , verbose , returnfp )
9236+
9237+ def archivefilelistfiles_neo (infile , formatspecs = None , advanced = False , include_dirs = True , returnfp = False ):
9238+ return ArchiveFileListFiles (infile , "auto" , 0 , 0 , False , formatspecs , False , True , advanced , returnfp )
9239+
9240+ def convert_foreign_to_neo (infile , outfile = None , formatspecs = None , checksumtypes = ["crc32" , "crc32" , "crc32" , "crc32" ], compression = "auto" , compression_level = None , returnfp = False ):
9241+ intmp = InFileToArray (infile , 0 , 0 , False , True , False , formatspecs , False , False )
9242+ return RePackArchiveFile (intmp , outfile , "auto" , compression , False , compression_level , compressionlistalt , False , 0 , 0 , checksumtypes , False , [], {}, formatspecs , False , False , returnfp )
92069243
92079244def download_file_from_ftp_file (url ):
92089245 urlparts = urlparse (url )
0 commit comments