PyFoxFile 0.20.4__tar.gz → 0.20.8__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pyfoxfile-0.20.4 → pyfoxfile-0.20.8}/PKG-INFO +1 -1
- {pyfoxfile-0.20.4 → pyfoxfile-0.20.8}/PyFoxFile.egg-info/PKG-INFO +1 -1
- {pyfoxfile-0.20.4 → pyfoxfile-0.20.8}/pyfoxfile.py +54 -13
- {pyfoxfile-0.20.4 → pyfoxfile-0.20.8}/pyproject.toml +1 -1
- {pyfoxfile-0.20.4 → pyfoxfile-0.20.8}/LICENSE +0 -0
- {pyfoxfile-0.20.4 → pyfoxfile-0.20.8}/PyFoxFile.egg-info/SOURCES.txt +0 -0
- {pyfoxfile-0.20.4 → pyfoxfile-0.20.8}/PyFoxFile.egg-info/dependency_links.txt +0 -0
- {pyfoxfile-0.20.4 → pyfoxfile-0.20.8}/PyFoxFile.egg-info/top_level.txt +0 -0
- {pyfoxfile-0.20.4 → pyfoxfile-0.20.8}/PyFoxFile.egg-info/zip-safe +0 -0
- {pyfoxfile-0.20.4 → pyfoxfile-0.20.8}/README.md +0 -0
- {pyfoxfile-0.20.4 → pyfoxfile-0.20.8}/foxfile.py +0 -0
- {pyfoxfile-0.20.4 → pyfoxfile-0.20.8}/neofoxfile.py +0 -0
- {pyfoxfile-0.20.4 → pyfoxfile-0.20.8}/setup.cfg +0 -0
- {pyfoxfile-0.20.4 → pyfoxfile-0.20.8}/setup.py +0 -0
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
Copyright 2018-2024 Game Maker 2k - http://intdb.sourceforge.net/
|
|
15
15
|
Copyright 2018-2024 Kazuki Przyborowski - https://github.com/KazukiPrzyborowski
|
|
16
16
|
|
|
17
|
-
$FileInfo: pyfoxfile.py - Last Update: 9/
|
|
17
|
+
$FileInfo: pyfoxfile.py - Last Update: 9/16/2025 Ver. 0.20.8 RC 1 - Author: cooldude2k $
|
|
18
18
|
'''
|
|
19
19
|
|
|
20
20
|
from __future__ import absolute_import, division, print_function, unicode_literals, generators, with_statement, nested_scopes
|
|
@@ -366,6 +366,10 @@ if(__include_defaults__):
|
|
|
366
366
|
__file_format_multi_dict__.update( { 'KitsuneFile': {'format_name': "KitsuneFile", 'format_magic': "KitsuneFile", 'format_len': 11, 'format_hex': "4b697473756e6546696c65", 'format_delimiter': "\x00", 'format_ver': "001", 'new_style': True, 'use_advanced_list': True, 'use_alt_inode': False, 'format_extension': ".kitsune" } } )
|
|
367
367
|
if("キツネファイル" not in __file_format_multi_dict__):
|
|
368
368
|
__file_format_multi_dict__.update( { 'キツネファイル': {'format_name': "KitsuneFairu", 'format_magic': "キツネファイル", 'format_len': 21, 'format_hex': "e382ade38384e3838de38395e382a1e382a4e383ab", 'format_delimiter': "\x00", 'format_ver': "001", 'new_style': True, 'use_advanced_list': True, 'use_alt_inode': False, 'format_extension': ".キツネ" } } )
|
|
369
|
+
if("きつねファイル" not in __file_format_multi_dict__):
|
|
370
|
+
__file_format_multi_dict__.update( { 'きつねファイル': {'format_name': "KitsuneFairu", 'format_magic': "きつねファイル", 'format_len': 21, 'format_hex': "e3818de381a4e381ade38395e382a1e382a4e383ab", 'format_delimiter': "\x00", 'format_ver': "001", 'new_style': True, 'use_advanced_list': True, 'use_alt_inode': False, 'format_extension': ".きつね" } } )
|
|
371
|
+
if("狐ファイル" not in __file_format_multi_dict__):
|
|
372
|
+
__file_format_multi_dict__.update( { '狐ファイル': {'format_name': "KitsuneFairu", 'format_magic': "狐ファイル", 'format_len': 15, 'format_hex': "e78b90e38395e382a1e382a4e383ab", 'format_delimiter': "\x00", 'format_ver': "001", 'new_style': True, 'use_advanced_list': True, 'use_alt_inode': False, 'format_extension': ".狐" } } )
|
|
369
373
|
if(__file_format_default__ not in __file_format_multi_dict__):
|
|
370
374
|
__file_format_default__ = next(iter(__file_format_multi_dict__))
|
|
371
375
|
__file_format_name__ = __file_format_multi_dict__[__file_format_default__]['format_name']
|
|
@@ -381,12 +385,12 @@ __file_format_extension__ = __file_format_multi_dict__[__file_format_default__][
|
|
|
381
385
|
__file_format_dict__ = __file_format_multi_dict__[__file_format_default__]
|
|
382
386
|
__project__ = __program_name__
|
|
383
387
|
__project_url__ = "https://github.com/GameMaker2k/PyFoxFile"
|
|
384
|
-
__version_info__ = (0, 20,
|
|
385
|
-
__version_date_info__ = (2025, 9,
|
|
388
|
+
__version_info__ = (0, 20, 8, "RC 1", 1)
|
|
389
|
+
__version_date_info__ = (2025, 9, 16, "RC 1", 1)
|
|
386
390
|
__version_date__ = str(__version_date_info__[0]) + "." + str(
|
|
387
391
|
__version_date_info__[1]).zfill(2) + "." + str(__version_date_info__[2]).zfill(2)
|
|
388
392
|
__revision__ = __version_info__[3]
|
|
389
|
-
__revision_id__ = "$Id:
|
|
393
|
+
__revision_id__ = "$Id: c24bcebed9f90311395ef150d337a5669849d131 $"
|
|
390
394
|
if(__version_info__[4] is not None):
|
|
391
395
|
__version_date_plusrc__ = __version_date__ + \
|
|
392
396
|
"-" + str(__version_date_info__[4])
|
|
@@ -8600,15 +8604,15 @@ def UnPackFoxFileString(instr, outdir=None, followlink=False, seekstart=0, seeke
|
|
|
8600
8604
|
|
|
8601
8605
|
def ftype_to_str(ftype):
|
|
8602
8606
|
mapping = {
|
|
8603
|
-
0: "file",
|
|
8604
|
-
1: "link",
|
|
8605
|
-
2: "
|
|
8606
|
-
3: "char device
|
|
8607
|
-
4: "block device
|
|
8608
|
-
5: "
|
|
8609
|
-
6: "fifo",
|
|
8610
|
-
12: "
|
|
8611
|
-
14: "
|
|
8607
|
+
0: "file", # file
|
|
8608
|
+
1: "link", # link
|
|
8609
|
+
2: "sym", # symlink
|
|
8610
|
+
3: "cdev", # char device
|
|
8611
|
+
4: "bdev", # block device
|
|
8612
|
+
5: "dir", # directory
|
|
8613
|
+
6: "fifo", # fifo
|
|
8614
|
+
12: "spar", # sparse
|
|
8615
|
+
14: "dev", # generic device
|
|
8612
8616
|
}
|
|
8613
8617
|
# Default to "file" if unknown
|
|
8614
8618
|
return mapping.get(ftype, "file")
|
|
@@ -9205,6 +9209,43 @@ def ListDirListFiles(infiles, dirlistfromtxt=False, compression="auto", compress
|
|
|
9205
9209
|
outarray, seekstart, seekend, skipchecksum, formatspecs, seektoend, verbose, returnfp)
|
|
9206
9210
|
return listfoxfiles
|
|
9207
9211
|
|
|
9212
|
+
"""
|
|
9213
|
+
PyNeoFile compatibility layer
|
|
9214
|
+
"""
|
|
9215
|
+
|
|
9216
|
+
def make_empty_file_pointer_neo(fp, fmttype=None, checksumtype='crc32', formatspecs=None, encoding='UTF-8'):
|
|
9217
|
+
return MakeEmptyFilePointer(fp, fmttype, checksumtype, formatspecs)
|
|
9218
|
+
|
|
9219
|
+
def make_empty_archive_file_pointer_neo(fp, fmttype=None, checksumtype='crc32', formatspecs=None, encoding='UTF-8'):
|
|
9220
|
+
return make_empty_file_pointer_neo(fp, fmttype, checksumtype, formatspecs, encoding)
|
|
9221
|
+
|
|
9222
|
+
def make_empty_file_neo(outfile=None, fmttype=None, checksumtype='crc32', formatspecs=None, encoding='UTF-8', returnfp=False):
|
|
9223
|
+
return MakeEmptyFile(outfile, fmttype, "auto", False, None, checksumtype, formatspecs, returnfp)
|
|
9224
|
+
|
|
9225
|
+
def make_empty_archive_file_neo(outfile=None, fmttype=None, checksumtype='crc32', formatspecs=None, encoding='UTF-8', returnfp=False):
|
|
9226
|
+
return make_empty_file_neo(outfile, fmttype, checksumtype, formatspecs, encoding, returnfp)
|
|
9227
|
+
|
|
9228
|
+
def pack_neo(infiles, outfile=None, formatspecs=None, checksumtypes=["crc32", "crc32", "crc32", "crc32"], encoding="UTF-8", compression="auto", compression_level=None, returnfp=False):
|
|
9229
|
+
return PackFoxFile(infiles, outfile, False, "auto", compression, False, compression_level, compressionlistalt, False, checksumtypes, [], {}, formatspecs, False, returnfp)
|
|
9230
|
+
|
|
9231
|
+
def archive_to_array_neo(infile, formatspecs=None, listonly=False, skipchecksum=False, uncompress=True, returnfp=False):
|
|
9232
|
+
return FoxFileToArray(infile, "auto", 0, 0, listonly, True, uncompress, skipchecksum, formatspecs, False, returnfp)
|
|
9233
|
+
|
|
9234
|
+
def unpack_neo(infile, outdir='.', formatspecs=None, skipchecksum=False, uncompress=True, returnfp=False):
|
|
9235
|
+
return UnPackFoxFile(infile, outdir, False, 0, 0, skipchecksum, formatspecs, True, True, False, False, returnfp)
|
|
9236
|
+
|
|
9237
|
+
def repack_neo(infile, outfile=None, formatspecs=None, checksumtypes=["crc32", "crc32", "crc32", "crc32"], compression="auto", compression_level=None, returnfp=False):
|
|
9238
|
+
return RePackFoxFile(infile, outfile, "auto", compression, False, compression_level, compressionlistalt, False, 0, 0, checksumtypes, False, [], {}, formatspecs, False, False, returnfp)
|
|
9239
|
+
|
|
9240
|
+
def archivefilevalidate_neo(infile, formatspecs=None, verbose=False, return_details=False, returnfp=False):
|
|
9241
|
+
return FoxFileValidate(infile, "auto", formatspecs, False, verbose, returnfp)
|
|
9242
|
+
|
|
9243
|
+
def archivefilelistfiles_neo(infile, formatspecs=None, advanced=False, include_dirs=True, returnfp=False):
|
|
9244
|
+
return FoxFileListFiles(infile, "auto", 0, 0, False, formatspecs, False, True, advanced, returnfp)
|
|
9245
|
+
|
|
9246
|
+
def convert_foreign_to_neo(infile, outfile=None, formatspecs=None, checksumtypes=["crc32", "crc32", "crc32", "crc32"], compression="auto", compression_level=None, returnfp=False):
|
|
9247
|
+
intmp = InFileToArray(infile, 0, 0, False, True, False, formatspecs, False, False)
|
|
9248
|
+
return RePackFoxFile(intmp, outfile, "auto", compression, False, compression_level, compressionlistalt, False, 0, 0, checksumtypes, False, [], {}, formatspecs, False, False, returnfp)
|
|
9208
9249
|
|
|
9209
9250
|
def download_file_from_ftp_file(url):
|
|
9210
9251
|
urlparts = urlparse(url)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|