PyFoxFile 0.24.0__py3-none-any.whl → 0.24.2__py3-none-any.whl
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.24.0.data → pyfoxfile-0.24.2.data}/scripts/foxfile.py +1 -1
- {pyfoxfile-0.24.0.dist-info → pyfoxfile-0.24.2.dist-info}/METADATA +1 -1
- pyfoxfile-0.24.2.dist-info/RECORD +10 -0
- pyfoxfile.py +178 -24
- pyfoxfile-0.24.0.dist-info/RECORD +0 -10
- {pyfoxfile-0.24.0.data → pyfoxfile-0.24.2.data}/scripts/foxneofile.py +0 -0
- {pyfoxfile-0.24.0.data → pyfoxfile-0.24.2.data}/scripts/neofoxfile.py +0 -0
- {pyfoxfile-0.24.0.dist-info → pyfoxfile-0.24.2.dist-info}/WHEEL +0 -0
- {pyfoxfile-0.24.0.dist-info → pyfoxfile-0.24.2.dist-info}/licenses/LICENSE +0 -0
- {pyfoxfile-0.24.0.dist-info → pyfoxfile-0.24.2.dist-info}/top_level.txt +0 -0
- {pyfoxfile-0.24.0.dist-info → pyfoxfile-0.24.2.dist-info}/zip-safe +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: foxfile.py - Last Update: 10/
|
|
17
|
+
$FileInfo: foxfile.py - Last Update: 10/31/2025 Ver. 0.24.2 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
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
pyfoxfile.py,sha256=ezbGNv0uvdNB-ZrGlRyZdBw-U93_JjtNoB_EyZ12xXQ,617100
|
|
2
|
+
pyfoxfile-0.24.2.data/scripts/foxfile.py,sha256=m9RI801IPemow9HNpbhesHmhNxCdz4j9YMak_M7MVIE,14126
|
|
3
|
+
pyfoxfile-0.24.2.data/scripts/foxneofile.py,sha256=vrQsZFkSyq5TqQmakzz3AtvxAqQTECTcb9JTzWYDzng,5128
|
|
4
|
+
pyfoxfile-0.24.2.data/scripts/neofoxfile.py,sha256=axk89rmrILol-ZNoTVj0wtTVvt8E_ovrq1oojSQKUj8,7114
|
|
5
|
+
pyfoxfile-0.24.2.dist-info/licenses/LICENSE,sha256=WM1VWxTUVrQbvEa-LC7cKTaBHXiqSTyYPoJvsZSbd7E,1513
|
|
6
|
+
pyfoxfile-0.24.2.dist-info/METADATA,sha256=lKuMBF_sZVnhfPsMvPZRPjgsbQHPrQMB9ubM8yMNYlY,853
|
|
7
|
+
pyfoxfile-0.24.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
8
|
+
pyfoxfile-0.24.2.dist-info/top_level.txt,sha256=VTOkpGfBWHNht7FKfnbccd32n_Jgk8Df5NKKfzaliTc,10
|
|
9
|
+
pyfoxfile-0.24.2.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
|
10
|
+
pyfoxfile-0.24.2.dist-info/RECORD,,
|
pyfoxfile.py
CHANGED
|
@@ -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: 10/
|
|
17
|
+
$FileInfo: pyfoxfile.py - Last Update: 10/31/2025 Ver. 0.24.2 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
|
|
@@ -629,12 +629,12 @@ __file_format_extension__ = __file_format_multi_dict__[__file_format_default__][
|
|
|
629
629
|
__file_format_dict__ = __file_format_multi_dict__[__file_format_default__]
|
|
630
630
|
__project__ = __program_name__
|
|
631
631
|
__project_url__ = "https://github.com/GameMaker2k/PyFoxFile"
|
|
632
|
-
__version_info__ = (0, 24,
|
|
633
|
-
__version_date_info__ = (2025, 10,
|
|
632
|
+
__version_info__ = (0, 24, 2, "RC 1", 1)
|
|
633
|
+
__version_date_info__ = (2025, 10, 31, "RC 1", 1)
|
|
634
634
|
__version_date__ = str(__version_date_info__[0]) + "." + str(
|
|
635
635
|
__version_date_info__[1]).zfill(2) + "." + str(__version_date_info__[2]).zfill(2)
|
|
636
636
|
__revision__ = __version_info__[3]
|
|
637
|
-
__revision_id__ = "$Id:
|
|
637
|
+
__revision_id__ = "$Id: 7cfe613bdb101b0c0e630f6d2ac71b2efb6edd88 $"
|
|
638
638
|
if(__version_info__[4] is not None):
|
|
639
639
|
__version_date_plusrc__ = __version_date__ + \
|
|
640
640
|
"-" + str(__version_date_info__[4])
|
|
@@ -6470,7 +6470,7 @@ def AppendFileHeaderWithContent(fp, filevalues=[], extradata=[], jsondata={}, fi
|
|
|
6470
6470
|
return fp
|
|
6471
6471
|
|
|
6472
6472
|
|
|
6473
|
-
def AppendFilesWithContent(infiles, fp, dirlistfromtxt=False,
|
|
6473
|
+
def AppendFilesWithContent(infiles, fp, dirlistfromtxt=False, extradata=[], jsondata={}, compression="auto", compresswholefile=True, compressionlevel=None, compressionuselist=compressionlistalt, followlink=False, checksumtype=["crc32", "crc32", "crc32", "crc32"], formatspecs=__file_format_dict__, verbose=False):
|
|
6474
6474
|
if(not hasattr(fp, "write")):
|
|
6475
6475
|
return False
|
|
6476
6476
|
advancedlist = formatspecs['use_advanced_list']
|
|
@@ -6520,6 +6520,16 @@ def AppendFilesWithContent(infiles, fp, dirlistfromtxt=False, filevalues=[], ext
|
|
|
6520
6520
|
numfiles = int(len(GetDirList))
|
|
6521
6521
|
fnumfiles = format(numfiles, 'x').lower()
|
|
6522
6522
|
AppendFileHeader(fp, numfiles, "UTF-8", [], checksumtype[0], formatspecs)
|
|
6523
|
+
try:
|
|
6524
|
+
fp.flush()
|
|
6525
|
+
if(hasattr(os, "sync")):
|
|
6526
|
+
os.fsync(fp.fileno())
|
|
6527
|
+
except io.UnsupportedOperation:
|
|
6528
|
+
pass
|
|
6529
|
+
except AttributeError:
|
|
6530
|
+
pass
|
|
6531
|
+
except OSError:
|
|
6532
|
+
pass
|
|
6523
6533
|
FullSizeFilesAlt = 0
|
|
6524
6534
|
for curfname in GetDirList:
|
|
6525
6535
|
fencoding = "UTF-8"
|
|
@@ -6771,6 +6781,16 @@ def AppendFilesWithContent(infiles, fp, dirlistfromtxt=False, filevalues=[], ext
|
|
|
6771
6781
|
fcsize, fuid, funame, fgid, fgname, fcurfid, fcurinode, flinkcount, fdev, fdev_minor, fdev_major, "+"+str(len(formatspecs['format_delimiter']))]
|
|
6772
6782
|
AppendFileHeaderWithContent(
|
|
6773
6783
|
fp, tmpoutlist, extradata, jsondata, fcontents.read(), [checksumtype[1], checksumtype[2], checksumtype[3]], formatspecs)
|
|
6784
|
+
try:
|
|
6785
|
+
fp.flush()
|
|
6786
|
+
if(hasattr(os, "sync")):
|
|
6787
|
+
os.fsync(fp.fileno())
|
|
6788
|
+
except io.UnsupportedOperation:
|
|
6789
|
+
pass
|
|
6790
|
+
except AttributeError:
|
|
6791
|
+
pass
|
|
6792
|
+
except OSError:
|
|
6793
|
+
pass
|
|
6774
6794
|
return fp
|
|
6775
6795
|
|
|
6776
6796
|
def AppendFilesWithContentFromTarFile(infile, fp, extradata=[], jsondata={}, compression="auto", compresswholefile=True, compressionlevel=None, compressionuselist=compressionlistalt, checksumtype=["crc32", "crc32", "crc32", "crc32"], formatspecs=__file_format_dict__, verbose=False):
|
|
@@ -6779,8 +6799,6 @@ def AppendFilesWithContentFromTarFile(infile, fp, extradata=[], jsondata={}, com
|
|
|
6779
6799
|
if(verbose):
|
|
6780
6800
|
logging.basicConfig(format="%(message)s",
|
|
6781
6801
|
stream=sys.stdout, level=logging.DEBUG)
|
|
6782
|
-
formver = formatspecs['format_ver']
|
|
6783
|
-
fileheaderver = str(int(formver.replace(".", "")))
|
|
6784
6802
|
curinode = 0
|
|
6785
6803
|
curfid = 0
|
|
6786
6804
|
inodelist = []
|
|
@@ -6848,6 +6866,16 @@ def AppendFilesWithContentFromTarFile(infile, fp, extradata=[], jsondata={}, com
|
|
|
6848
6866
|
return False
|
|
6849
6867
|
numfiles = int(len(tarfp.getmembers()))
|
|
6850
6868
|
AppendFileHeader(fp, numfiles, "UTF-8", [], checksumtype[0], formatspecs)
|
|
6869
|
+
try:
|
|
6870
|
+
fp.flush()
|
|
6871
|
+
if(hasattr(os, "sync")):
|
|
6872
|
+
os.fsync(fp.fileno())
|
|
6873
|
+
except io.UnsupportedOperation:
|
|
6874
|
+
pass
|
|
6875
|
+
except AttributeError:
|
|
6876
|
+
pass
|
|
6877
|
+
except OSError:
|
|
6878
|
+
pass
|
|
6851
6879
|
for member in sorted(tarfp.getmembers(), key=lambda x: x.name):
|
|
6852
6880
|
fencoding = "UTF-8"
|
|
6853
6881
|
if(re.findall("^[.|/]", member.name)):
|
|
@@ -6986,6 +7014,16 @@ def AppendFilesWithContentFromTarFile(infile, fp, extradata=[], jsondata={}, com
|
|
|
6986
7014
|
fcsize, fuid, funame, fgid, fgname, fcurfid, fcurinode, flinkcount, fdev, fdev_minor, fdev_major, "+"+str(len(formatspecs['format_delimiter']))]
|
|
6987
7015
|
AppendFileHeaderWithContent(
|
|
6988
7016
|
fp, tmpoutlist, extradata, jsondata, fcontents.read(), [checksumtype[1], checksumtype[2], checksumtype[3]], formatspecs)
|
|
7017
|
+
try:
|
|
7018
|
+
fp.flush()
|
|
7019
|
+
if(hasattr(os, "sync")):
|
|
7020
|
+
os.fsync(fp.fileno())
|
|
7021
|
+
except io.UnsupportedOperation:
|
|
7022
|
+
pass
|
|
7023
|
+
except AttributeError:
|
|
7024
|
+
pass
|
|
7025
|
+
except OSError:
|
|
7026
|
+
pass
|
|
6989
7027
|
fcontents.close()
|
|
6990
7028
|
return fp
|
|
6991
7029
|
|
|
@@ -6995,8 +7033,6 @@ def AppendFilesWithContentFromZipFile(infile, fp, extradata=[], jsondata={}, com
|
|
|
6995
7033
|
if(verbose):
|
|
6996
7034
|
logging.basicConfig(format="%(message)s",
|
|
6997
7035
|
stream=sys.stdout, level=logging.DEBUG)
|
|
6998
|
-
formver = formatspecs['format_ver']
|
|
6999
|
-
fileheaderver = str(int(formver.replace(".", "")))
|
|
7000
7036
|
curinode = 0
|
|
7001
7037
|
curfid = 0
|
|
7002
7038
|
inodelist = []
|
|
@@ -7034,6 +7070,16 @@ def AppendFilesWithContentFromZipFile(infile, fp, extradata=[], jsondata={}, com
|
|
|
7034
7070
|
VerbosePrintOut("Bad file found!")
|
|
7035
7071
|
numfiles = int(len(zipfp.infolist()))
|
|
7036
7072
|
AppendFileHeader(fp, numfiles, "UTF-8", [], checksumtype[0], formatspecs)
|
|
7073
|
+
try:
|
|
7074
|
+
fp.flush()
|
|
7075
|
+
if(hasattr(os, "sync")):
|
|
7076
|
+
os.fsync(fp.fileno())
|
|
7077
|
+
except io.UnsupportedOperation:
|
|
7078
|
+
pass
|
|
7079
|
+
except AttributeError:
|
|
7080
|
+
pass
|
|
7081
|
+
except OSError:
|
|
7082
|
+
pass
|
|
7037
7083
|
for member in sorted(zipfp.infolist(), key=lambda x: x.filename):
|
|
7038
7084
|
fencoding = "UTF-8"
|
|
7039
7085
|
if(re.findall("^[.|/]", member.filename)):
|
|
@@ -7196,6 +7242,16 @@ def AppendFilesWithContentFromZipFile(infile, fp, extradata=[], jsondata={}, com
|
|
|
7196
7242
|
fcsize, fuid, funame, fgid, fgname, fcurfid, fcurinode, flinkcount, fdev, fdev_minor, fdev_major, "+"+str(len(formatspecs['format_delimiter']))]
|
|
7197
7243
|
AppendFileHeaderWithContent(
|
|
7198
7244
|
fp, tmpoutlist, extradata, jsondata, fcontents.read(), [checksumtype[1], checksumtype[2], checksumtype[3]], formatspecs)
|
|
7245
|
+
try:
|
|
7246
|
+
fp.flush()
|
|
7247
|
+
if(hasattr(os, "sync")):
|
|
7248
|
+
os.fsync(fp.fileno())
|
|
7249
|
+
except io.UnsupportedOperation:
|
|
7250
|
+
pass
|
|
7251
|
+
except AttributeError:
|
|
7252
|
+
pass
|
|
7253
|
+
except OSError:
|
|
7254
|
+
pass
|
|
7199
7255
|
fcontents.close()
|
|
7200
7256
|
return fp
|
|
7201
7257
|
|
|
@@ -7210,8 +7266,6 @@ if(rarfile_support):
|
|
|
7210
7266
|
if(verbose):
|
|
7211
7267
|
logging.basicConfig(format="%(message)s",
|
|
7212
7268
|
stream=sys.stdout, level=logging.DEBUG)
|
|
7213
|
-
formver = formatspecs['format_ver']
|
|
7214
|
-
fileheaderver = str(int(formver.replace(".", "")))
|
|
7215
7269
|
curinode = 0
|
|
7216
7270
|
curfid = 0
|
|
7217
7271
|
inodelist = []
|
|
@@ -7228,6 +7282,16 @@ if(rarfile_support):
|
|
|
7228
7282
|
VerbosePrintOut("Bad file found!")
|
|
7229
7283
|
numfiles = int(len(rarfp.infolist()))
|
|
7230
7284
|
AppendFileHeader(fp, numfiles, "UTF-8", [], checksumtype[0], formatspecs)
|
|
7285
|
+
try:
|
|
7286
|
+
fp.flush()
|
|
7287
|
+
if(hasattr(os, "sync")):
|
|
7288
|
+
os.fsync(fp.fileno())
|
|
7289
|
+
except io.UnsupportedOperation:
|
|
7290
|
+
pass
|
|
7291
|
+
except AttributeError:
|
|
7292
|
+
pass
|
|
7293
|
+
except OSError:
|
|
7294
|
+
pass
|
|
7231
7295
|
try:
|
|
7232
7296
|
fp.flush()
|
|
7233
7297
|
if(hasattr(os, "sync")):
|
|
@@ -7432,6 +7496,16 @@ if(rarfile_support):
|
|
|
7432
7496
|
fcsize, fuid, funame, fgid, fgname, fcurfid, fcurinode, flinkcount, fdev, fdev_minor, fdev_major, "+"+str(len(formatspecs['format_delimiter']))]
|
|
7433
7497
|
AppendFileHeaderWithContent(
|
|
7434
7498
|
fp, tmpoutlist, extradata, jsondata, fcontents.read(), [checksumtype[1], checksumtype[2], checksumtype[3]], formatspecs)
|
|
7499
|
+
try:
|
|
7500
|
+
fp.flush()
|
|
7501
|
+
if(hasattr(os, "sync")):
|
|
7502
|
+
os.fsync(fp.fileno())
|
|
7503
|
+
except io.UnsupportedOperation:
|
|
7504
|
+
pass
|
|
7505
|
+
except AttributeError:
|
|
7506
|
+
pass
|
|
7507
|
+
except OSError:
|
|
7508
|
+
pass
|
|
7435
7509
|
fcontents.close()
|
|
7436
7510
|
return fp
|
|
7437
7511
|
|
|
@@ -7464,6 +7538,16 @@ if(py7zr_support):
|
|
|
7464
7538
|
VerbosePrintOut("Bad file found!")
|
|
7465
7539
|
numfiles = int(len(szpfp.list()))
|
|
7466
7540
|
AppendFileHeader(fp, numfiles, "UTF-8", [], checksumtype[0], formatspecs)
|
|
7541
|
+
try:
|
|
7542
|
+
fp.flush()
|
|
7543
|
+
if(hasattr(os, "sync")):
|
|
7544
|
+
os.fsync(fp.fileno())
|
|
7545
|
+
except io.UnsupportedOperation:
|
|
7546
|
+
pass
|
|
7547
|
+
except AttributeError:
|
|
7548
|
+
pass
|
|
7549
|
+
except OSError:
|
|
7550
|
+
pass
|
|
7467
7551
|
for member in sorted(szpfp.list(), key=lambda x: x.filename):
|
|
7468
7552
|
fencoding = "UTF-8"
|
|
7469
7553
|
if(re.findall("^[.|/]", member.filename)):
|
|
@@ -7602,10 +7686,20 @@ if(py7zr_support):
|
|
|
7602
7686
|
fcsize, fuid, funame, fgid, fgname, fcurfid, fcurinode, flinkcount, fdev, fdev_minor, fdev_major, "+"+str(len(formatspecs['format_delimiter']))]
|
|
7603
7687
|
AppendFileHeaderWithContent(
|
|
7604
7688
|
fp, tmpoutlist, extradata, jsondata, fcontents.read(), [checksumtype[1], checksumtype[2], checksumtype[3]], formatspecs)
|
|
7689
|
+
try:
|
|
7690
|
+
fp.flush()
|
|
7691
|
+
if(hasattr(os, "sync")):
|
|
7692
|
+
os.fsync(fp.fileno())
|
|
7693
|
+
except io.UnsupportedOperation:
|
|
7694
|
+
pass
|
|
7695
|
+
except AttributeError:
|
|
7696
|
+
pass
|
|
7697
|
+
except OSError:
|
|
7698
|
+
pass
|
|
7605
7699
|
fcontents.close()
|
|
7606
7700
|
return fp
|
|
7607
7701
|
|
|
7608
|
-
def AppendListsWithContent(inlist, fp, dirlistfromtxt=False,
|
|
7702
|
+
def AppendListsWithContent(inlist, fp, dirlistfromtxt=False, extradata=[], jsondata={}, compression="auto", compresswholefile=True, compressionlevel=None, followlink=False, checksumtype=["crc32", "crc32", "crc32", "crc32"], formatspecs=__file_format_dict__, verbose=False):
|
|
7609
7703
|
if(not hasattr(fp, "write")):
|
|
7610
7704
|
return False
|
|
7611
7705
|
if(verbose):
|
|
@@ -7667,12 +7761,12 @@ def AppendListsWithContent(inlist, fp, dirlistfromtxt=False, filevalues=[], extr
|
|
|
7667
7761
|
return fp
|
|
7668
7762
|
|
|
7669
7763
|
|
|
7670
|
-
def AppendInFileWithContent(infile, fp, dirlistfromtxt=False,
|
|
7764
|
+
def AppendInFileWithContent(infile, fp, dirlistfromtxt=False, extradata=[], jsondata={}, followlink=False, checksumtype=["crc32", "crc32", "crc32", "crc32"], formatspecs=__file_format_dict__, verbose=False):
|
|
7671
7765
|
inlist = ReadInFileWithContentToList(infile, "auto", 0, 0, False, False, True, False, formatspecs)
|
|
7672
|
-
return AppendListsWithContent(inlist, fp, dirlistfromtxt,
|
|
7766
|
+
return AppendListsWithContent(inlist, fp, dirlistfromtxt, extradata, jsondata, followlink, checksumtype, formatspecs, verbose)
|
|
7673
7767
|
|
|
7674
7768
|
|
|
7675
|
-
def AppendFilesWithContentToOutFile(infiles, outfile, dirlistfromtxt=False, fmttype="auto", compression="auto", compresswholefile=True, compressionlevel=None, compressionuselist=compressionlistalt,
|
|
7769
|
+
def AppendFilesWithContentToOutFile(infiles, outfile, dirlistfromtxt=False, fmttype="auto", compression="auto", compresswholefile=True, compressionlevel=None, compressionuselist=compressionlistalt, extradata=[], jsondata={}, followlink=False, checksumtype=["crc32", "crc32", "crc32", "crc32"], formatspecs=__file_format_multi_dict__, verbose=False, returnfp=False):
|
|
7676
7770
|
if(IsNestedDict(formatspecs) and fmttype=="auto" and
|
|
7677
7771
|
(outfile != "-" and outfile is not None and not hasattr(outfile, "read") and not hasattr(outfile, "write"))):
|
|
7678
7772
|
get_in_ext = os.path.splitext(outfile)
|
|
@@ -7716,7 +7810,7 @@ def AppendFilesWithContentToOutFile(infiles, outfile, dirlistfromtxt=False, fmtt
|
|
|
7716
7810
|
fp = CompressOpenFile(outfile, compresswholefile, compressionlevel)
|
|
7717
7811
|
except PermissionError:
|
|
7718
7812
|
return False
|
|
7719
|
-
AppendFilesWithContent(infiles, fp, dirlistfromtxt,
|
|
7813
|
+
AppendFilesWithContent(infiles, fp, dirlistfromtxt, extradata, jsondata, compression,
|
|
7720
7814
|
compresswholefile, compressionlevel, compressionuselist, followlink, checksumtype, formatspecs, verbose)
|
|
7721
7815
|
if(outfile == "-" or outfile is None or hasattr(outfile, "read") or hasattr(outfile, "write")):
|
|
7722
7816
|
fp = CompressOpenFileAlt(
|
|
@@ -7753,12 +7847,12 @@ def AppendFilesWithContentToOutFile(infiles, outfile, dirlistfromtxt=False, fmtt
|
|
|
7753
7847
|
fp.close()
|
|
7754
7848
|
return True
|
|
7755
7849
|
|
|
7756
|
-
def AppendFilesWithContentToStackedOutFile(infiles, outfile, dirlistfromtxt=False, fmttype="auto", compression="auto", compresswholefile=True, compressionlevel=None, compressionuselist=compressionlistalt,
|
|
7850
|
+
def AppendFilesWithContentToStackedOutFile(infiles, outfile, dirlistfromtxt=False, fmttype="auto", compression="auto", compresswholefile=True, compressionlevel=None, compressionuselist=compressionlistalt, extradata=[], jsondata={}, followlink=False, checksumtype=["crc32", "crc32", "crc32", "crc32"], formatspecs=__file_format_multi_dict__, verbose=False, returnfp=False):
|
|
7757
7851
|
if not isinstance(infiles, list):
|
|
7758
7852
|
infiles = [infiles]
|
|
7759
7853
|
returnout = False
|
|
7760
7854
|
for infileslist in infiles:
|
|
7761
|
-
returnout = AppendFilesWithContentToOutFile(infileslist, outfile, dirlistfromtxt, fmttype, compression, compresswholefile, compressionlevel, compressionuselist,
|
|
7855
|
+
returnout = AppendFilesWithContentToOutFile(infileslist, outfile, dirlistfromtxt, fmttype, compression, compresswholefile, compressionlevel, compressionuselist, extradata, jsondata, followlink, checksumtype, formatspecs, verbose, True)
|
|
7762
7856
|
if(not returnout):
|
|
7763
7857
|
break
|
|
7764
7858
|
else:
|
|
@@ -7768,7 +7862,7 @@ def AppendFilesWithContentToStackedOutFile(infiles, outfile, dirlistfromtxt=Fals
|
|
|
7768
7862
|
return True
|
|
7769
7863
|
return returnout
|
|
7770
7864
|
|
|
7771
|
-
def AppendListsWithContentToOutFile(inlist, outfile, dirlistfromtxt=False, fmttype="auto", compression="auto", compresswholefile=True, compressionlevel=None,
|
|
7865
|
+
def AppendListsWithContentToOutFile(inlist, outfile, dirlistfromtxt=False, fmttype="auto", compression="auto", compresswholefile=True, compressionlevel=None, extradata=[], jsondata={}, followlink=False, checksumtype=["crc32", "crc32", "crc32", "crc32"], formatspecs=__file_format_dict__, verbose=False, returnfp=False):
|
|
7772
7866
|
if(IsNestedDict(formatspecs) and fmttype=="auto" and
|
|
7773
7867
|
(outfile != "-" and outfile is not None and not hasattr(outfile, "read") and not hasattr(outfile, "write"))):
|
|
7774
7868
|
get_in_ext = os.path.splitext(outfile)
|
|
@@ -7809,7 +7903,7 @@ def AppendListsWithContentToOutFile(inlist, outfile, dirlistfromtxt=False, fmtty
|
|
|
7809
7903
|
fp = CompressOpenFile(outfile, compresswholefile, compressionlevel)
|
|
7810
7904
|
except PermissionError:
|
|
7811
7905
|
return False
|
|
7812
|
-
AppendListsWithContent(inlist, fp, dirlistfromtxt,
|
|
7906
|
+
AppendListsWithContent(inlist, fp, dirlistfromtxt, extradata, jsondata, compression,
|
|
7813
7907
|
compresswholefile, compressionlevel, followlink, checksumtype, formatspecs, verbose)
|
|
7814
7908
|
if(outfile == "-" or outfile is None or hasattr(outfile, "read") or hasattr(outfile, "write")):
|
|
7815
7909
|
fp = CompressOpenFileAlt(
|
|
@@ -7927,6 +8021,21 @@ def AppendFilesWithContentFromTarFileToOutFile(infiles, outfile, fmttype="auto",
|
|
|
7927
8021
|
fp.close()
|
|
7928
8022
|
return True
|
|
7929
8023
|
|
|
8024
|
+
def AppendFilesWithContentFromTarFileToStackedOutFile(infiles, outfile, fmttype="auto", compression="auto", compresswholefile=True, compressionlevel=None, compressionuselist=compressionlistalt, extradata=[], jsondata={}, checksumtype=["crc32", "crc32", "crc32", "crc32"], formatspecs=__file_format_multi_dict__, verbose=False, returnfp=False):
|
|
8025
|
+
if not isinstance(infiles, list):
|
|
8026
|
+
infiles = [infiles]
|
|
8027
|
+
returnout = False
|
|
8028
|
+
for infileslist in infiles:
|
|
8029
|
+
returnout = AppendFilesWithContentFromTarFileToOutFile(infileslist, outfile, fmttype, compression, compresswholefile, compressionlevel, compressionuselist, extradata, jsondata, checksumtype, formatspecs, verbose, True)
|
|
8030
|
+
if(not returnout):
|
|
8031
|
+
break
|
|
8032
|
+
else:
|
|
8033
|
+
outfile = returnout
|
|
8034
|
+
if(not returnfp and returnout):
|
|
8035
|
+
returnout.close()
|
|
8036
|
+
return True
|
|
8037
|
+
return returnout
|
|
8038
|
+
|
|
7930
8039
|
def AppendFilesWithContentFromZipFileToOutFile(infiles, outfile, fmttype="auto", compression="auto", compresswholefile=True, compressionlevel=None, compressionuselist=compressionlistalt, extradata=[], jsondata={}, checksumtype=["crc32", "crc32", "crc32", "crc32"], formatspecs=__file_format_multi_dict__, verbose=False, returnfp=False):
|
|
7931
8040
|
if(IsNestedDict(formatspecs) and fmttype=="auto" and
|
|
7932
8041
|
(outfile != "-" and outfile is not None and not hasattr(outfile, "read") and not hasattr(outfile, "write"))):
|
|
@@ -8007,6 +8116,21 @@ def AppendFilesWithContentFromZipFileToOutFile(infiles, outfile, fmttype="auto",
|
|
|
8007
8116
|
fp.close()
|
|
8008
8117
|
return True
|
|
8009
8118
|
|
|
8119
|
+
def AppendFilesWithContentFromZipFileToStackedOutFile(infiles, outfile, fmttype="auto", compression="auto", compresswholefile=True, compressionlevel=None, compressionuselist=compressionlistalt, extradata=[], jsondata={}, checksumtype=["crc32", "crc32", "crc32", "crc32"], formatspecs=__file_format_multi_dict__, verbose=False, returnfp=False):
|
|
8120
|
+
if not isinstance(infiles, list):
|
|
8121
|
+
infiles = [infiles]
|
|
8122
|
+
returnout = False
|
|
8123
|
+
for infileslist in infiles:
|
|
8124
|
+
returnout = AppendFilesWithContentFromZipFileToOutFile(infileslist, outfile, fmttype, compression, compresswholefile, compressionlevel, compressionuselist, extradata, jsondata, checksumtype, formatspecs, verbose, True)
|
|
8125
|
+
if(not returnout):
|
|
8126
|
+
break
|
|
8127
|
+
else:
|
|
8128
|
+
outfile = returnout
|
|
8129
|
+
if(not returnfp and returnout):
|
|
8130
|
+
returnout.close()
|
|
8131
|
+
return True
|
|
8132
|
+
return returnout
|
|
8133
|
+
|
|
8010
8134
|
if(not rarfile_support):
|
|
8011
8135
|
def AppendFilesWithContentFromRarFileToOutFile(infiles, outfile, fmttype="auto", compression="auto", compresswholefile=True, compressionlevel=None, compressionuselist=compressionlistalt, extradata=[], jsondata={}, checksumtype=["crc32", "crc32", "crc32", "crc32"], formatspecs=__file_format_multi_dict__, verbose=False, returnfp=False):
|
|
8012
8136
|
return False
|
|
@@ -8092,6 +8216,21 @@ if(rarfile_support):
|
|
|
8092
8216
|
fp.close()
|
|
8093
8217
|
return True
|
|
8094
8218
|
|
|
8219
|
+
def AppendFilesWithContentFromRarFileToStackedOutFile(infiles, outfile, fmttype="auto", compression="auto", compresswholefile=True, compressionlevel=None, compressionuselist=compressionlistalt, extradata=[], jsondata={}, checksumtype=["crc32", "crc32", "crc32", "crc32"], formatspecs=__file_format_multi_dict__, verbose=False, returnfp=False):
|
|
8220
|
+
if not isinstance(infiles, list):
|
|
8221
|
+
infiles = [infiles]
|
|
8222
|
+
returnout = False
|
|
8223
|
+
for infileslist in infiles:
|
|
8224
|
+
returnout = AppendFilesWithContentFromRarFileToOutFile(infileslist, outfile, fmttype, compression, compresswholefile, compressionlevel, compressionuselist, extradata, jsondata, checksumtype, formatspecs, verbose, True)
|
|
8225
|
+
if(not returnout):
|
|
8226
|
+
break
|
|
8227
|
+
else:
|
|
8228
|
+
outfile = returnout
|
|
8229
|
+
if(not returnfp and returnout):
|
|
8230
|
+
returnout.close()
|
|
8231
|
+
return True
|
|
8232
|
+
return returnout
|
|
8233
|
+
|
|
8095
8234
|
if(not py7zr_support):
|
|
8096
8235
|
def AppendFilesWithContentFromSevenZipToOutFile(infiles, outfile, fmttype="auto", compression="auto", compresswholefile=True, compressionlevel=None, compressionuselist=compressionlistalt, extradata=[], jsondata={}, checksumtype=["crc32", "crc32", "crc32", "crc32"], formatspecs=__file_format_multi_dict__, verbose=False, returnfp=False):
|
|
8097
8236
|
return False
|
|
@@ -8177,9 +8316,24 @@ if(py7zr_support):
|
|
|
8177
8316
|
fp.close()
|
|
8178
8317
|
return True
|
|
8179
8318
|
|
|
8180
|
-
def
|
|
8319
|
+
def AppendFilesWithContentFromSevenZipToStackedOutFile(infiles, outfile, fmttype="auto", compression="auto", compresswholefile=True, compressionlevel=None, compressionuselist=compressionlistalt, extradata=[], jsondata={}, checksumtype=["crc32", "crc32", "crc32", "crc32"], formatspecs=__file_format_multi_dict__, verbose=False, returnfp=False):
|
|
8320
|
+
if not isinstance(infiles, list):
|
|
8321
|
+
infiles = [infiles]
|
|
8322
|
+
returnout = False
|
|
8323
|
+
for infileslist in infiles:
|
|
8324
|
+
returnout = AppendFilesWithContentFromSevenZipToOutFile(infileslist, outfile, fmttype, compression, compresswholefile, compressionlevel, compressionuselist, extradata, jsondata, checksumtype, formatspecs, verbose, True)
|
|
8325
|
+
if(not returnout):
|
|
8326
|
+
break
|
|
8327
|
+
else:
|
|
8328
|
+
outfile = returnout
|
|
8329
|
+
if(not returnfp and returnout):
|
|
8330
|
+
returnout.close()
|
|
8331
|
+
return True
|
|
8332
|
+
return returnout
|
|
8333
|
+
|
|
8334
|
+
def AppendInFileWithContentToOutFile(infile, outfile, dirlistfromtxt=False, fmttype="auto", compression="auto", compresswholefile=True, compressionlevel=None, extradata=[], jsondata={}, followlink=False, checksumtype=["crc32", "crc32", "crc32", "crc32"], formatspecs=__file_format_dict__, verbose=False, returnfp=False):
|
|
8181
8335
|
inlist = ReadInFileWithContentToList(infile, "auto", 0, 0, False, False, True, False, formatspecs)
|
|
8182
|
-
return AppendListsWithContentToOutFile(inlist, outfile, dirlistfromtxt, fmttype, compression, compresswholefile, compressionlevel,
|
|
8336
|
+
return AppendListsWithContentToOutFile(inlist, outfile, dirlistfromtxt, fmttype, compression, compresswholefile, compressionlevel, extradata, jsondata, followlink, checksumtype, formatspecs, verbose, returnfp)
|
|
8183
8337
|
|
|
8184
8338
|
|
|
8185
8339
|
def PrintPermissionString(fchmode, ftype):
|
|
@@ -9955,10 +10109,10 @@ def CheckSumSupportAlt(checkfor, guaranteed=True):
|
|
|
9955
10109
|
|
|
9956
10110
|
|
|
9957
10111
|
def PackFoxFile(infiles, outfile, dirlistfromtxt=False, fmttype="auto", compression="auto", compresswholefile=True, compressionlevel=None, compressionuselist=compressionlistalt, followlink=False, checksumtype=["crc32", "crc32", "crc32", "crc32"], extradata=[], jsondata={}, formatspecs=__file_format_multi_dict__, verbose=False, returnfp=False):
|
|
9958
|
-
return AppendFilesWithContentToOutFile(infiles, outfile, dirlistfromtxt, fmttype, compression, compresswholefile, compressionlevel, compressionuselist,
|
|
10112
|
+
return AppendFilesWithContentToOutFile(infiles, outfile, dirlistfromtxt, fmttype, compression, compresswholefile, compressionlevel, compressionuselist, extradata, jsondata, followlink, checksumtype, formatspecs, verbose, returnfp)
|
|
9959
10113
|
|
|
9960
10114
|
def PackStackedFoxFile(infiles, outfile, dirlistfromtxt=False, fmttype="auto", compression="auto", compresswholefile=True, compressionlevel=None, compressionuselist=compressionlistalt, followlink=False, checksumtype=["crc32", "crc32", "crc32", "crc32"], extradata=[], jsondata={}, formatspecs=__file_format_multi_dict__, verbose=False, returnfp=False):
|
|
9961
|
-
return AppendFilesWithContentToStackedOutFile(infiles, outfile, dirlistfromtxt, fmttype, compression, compresswholefile, compressionlevel, compressionuselist,
|
|
10115
|
+
return AppendFilesWithContentToStackedOutFile(infiles, outfile, dirlistfromtxt, fmttype, compression, compresswholefile, compressionlevel, compressionuselist, extradata, jsondata, followlink, checksumtype, formatspecs, verbose, returnfp)
|
|
9962
10116
|
|
|
9963
10117
|
def PackFoxFileFromDirList(infiles, outfile, dirlistfromtxt=False, fmttype="auto", compression="auto", compresswholefile=True, compressionlevel=None, compressionuselist=compressionlistalt, followlink=False, checksumtype=["crc32", "crc32", "crc32"], extradata=[], formatspecs=__file_format_dict__, verbose=False, returnfp=False):
|
|
9964
10118
|
return PackFoxFile(infiles, outfile, dirlistfromtxt, fmttype, compression, compresswholefile, compressionlevel, compressionuselist, followlink, checksumtype, extradata, formatspecs, verbose, returnfp)
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
pyfoxfile.py,sha256=4_sVlsUMuKmSSMMrTanCjmVuiuIgev7HG2d1aTTBxz4,611490
|
|
2
|
-
pyfoxfile-0.24.0.data/scripts/foxfile.py,sha256=dG-nrdWMZhOmBm7bMp1Ra_GOsE_uILGpxInLXuYsFUk,14126
|
|
3
|
-
pyfoxfile-0.24.0.data/scripts/foxneofile.py,sha256=vrQsZFkSyq5TqQmakzz3AtvxAqQTECTcb9JTzWYDzng,5128
|
|
4
|
-
pyfoxfile-0.24.0.data/scripts/neofoxfile.py,sha256=axk89rmrILol-ZNoTVj0wtTVvt8E_ovrq1oojSQKUj8,7114
|
|
5
|
-
pyfoxfile-0.24.0.dist-info/licenses/LICENSE,sha256=WM1VWxTUVrQbvEa-LC7cKTaBHXiqSTyYPoJvsZSbd7E,1513
|
|
6
|
-
pyfoxfile-0.24.0.dist-info/METADATA,sha256=smM98NFVQumnpOpe-_xY2YmjnPC20Uu7wYQKrQPVjUw,853
|
|
7
|
-
pyfoxfile-0.24.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
8
|
-
pyfoxfile-0.24.0.dist-info/top_level.txt,sha256=VTOkpGfBWHNht7FKfnbccd32n_Jgk8Df5NKKfzaliTc,10
|
|
9
|
-
pyfoxfile-0.24.0.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
|
10
|
-
pyfoxfile-0.24.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|