Skip to content

Commit 162af5a

Browse files
authored
Add files via upload
1 parent 85cd737 commit 162af5a

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

pycatfile_py3.py

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

0 commit comments

Comments
 (0)