Skip to content

Commit 78e42d0

Browse files
authored
Add files via upload
1 parent 04409cb commit 78e42d0

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

pyfoxfile.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11423,7 +11423,7 @@ def UnPackFoxFile(infile, outdir=None, followlink=False, filestart=0, seekstart=
1142311423
listarrayfiles = ArchiveFileToArray(infile, "auto", filestart, seekstart, seekend, False, True, True, skipchecksum, formatspecs, saltkey, seektoend, returnfp)
1142411424
if(not listarrayfilespre):
1142511425
return False
11426-
if(not isinstance(infile, list)):
11426+
if(not isinstance(listarrayfilespre, list)):
1142711427
listarrayfilespre = [listarrayfilespre]
1142811428
fplist = []
1142911429
if os.path.exists(outdir) and os.path.isdir(outdir):
@@ -11659,8 +11659,9 @@ def UnPackFoxFile(infile, outdir=None, followlink=False, filestart=0, seekstart=
1165911659
if(listarrayfiles['ffilelist'][lcfi]['ftype'] == 6 and hasattr(os, "mkfifo")):
1166011660
os.mkfifo(PrependPath(
1166111661
outdir, listarrayfiles['ffilelist'][lcfi]['fname']), listarrayfiles['ffilelist'][lcfi]['fchmode'])
11662+
if(returnfp):
11663+
fplist.append(listarrayfiles['ffilelist'][lcfi]['fp'])
1166211664
lcfi = lcfi + 1
11663-
fplist.append(listarrayfiles['ffilelist']['fp'])
1166411665
if(returnfp):
1166511666
return fplist
1166611667
else:

pyfoxfile_py3.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10690,7 +10690,7 @@ def UnPackFoxFile(infile, outdir=None, followlink=False, filestart=0, seekstart=
1069010690
listarrayfilespre = ArchiveFileToArray(infile, "auto", filestart, seekstart, seekend, False, True, True, skipchecksum, formatspecs, saltkey, seektoend, returnfp)
1069110691
if(not listarrayfilespre):
1069210692
return False
10693-
if(not isinstance(infile, list)):
10693+
if(not isinstance(listarrayfilespre, list)):
1069410694
listarrayfilespre = [listarrayfilespre]
1069510695
fplist = []
1069610696
if os.path.exists(outdir) and os.path.isdir(outdir):
@@ -10926,8 +10926,9 @@ def UnPackFoxFile(infile, outdir=None, followlink=False, filestart=0, seekstart=
1092610926
if(listarrayfiles['ffilelist'][lcfi]['ftype'] == 6 and hasattr(os, "mkfifo")):
1092710927
os.mkfifo(PrependPath(
1092810928
outdir, listarrayfiles['ffilelist'][lcfi]['fname']), listarrayfiles['ffilelist'][lcfi]['fchmode'])
10929+
if(returnfp):
10930+
fplist.append(listarrayfiles['ffilelist'][lcfi]['fp'])
1092910931
lcfi = lcfi + 1
10930-
fplist.append(listarrayfiles['ffilelist']['fp'])
1093110932
if(returnfp):
1093210933
return fplist
1093310934
else:

0 commit comments

Comments
 (0)