From a815e017d6af86ffdd8def02320db6a0e53c428f Mon Sep 17 00:00:00 2001 From: Kazuki Suzuki Przyborowski Date: Mon, 8 Apr 2024 23:29:31 -0500 Subject: [PATCH] Add files via upload --- pycatfile.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pycatfile.py b/pycatfile.py index 73d5348..10a4d90 100755 --- a/pycatfile.py +++ b/pycatfile.py @@ -1307,7 +1307,7 @@ def AppendFilesWithContent(infiles, fp, dirlistfromtxt=False, filevalues=[], ext ftype = 1; flinkname = inodetofile[finode]; fcurinode = format(int(inodetocatinode[finode]), 'x').lower(); - if(finode not in inodelist): + elif(finode not in inodelist): inodelist.append(finode); inodetofile.update({finode: fname}); inodetocatinode.update({finode: curinode}); @@ -2376,7 +2376,7 @@ def PackArchiveFile(infiles, outfile, dirlistfromtxt=False, compression="auto", ftype = 1; flinkname = inodetofile[finode]; fcurinode = format(int(inodetocatinode[finode]), 'x').lower(); - if(finode not in inodelist): + elif(finode not in inodelist): inodelist.append(finode); inodetofile.update({finode: fname}); inodetocatinode.update({finode: curinode}); @@ -4794,7 +4794,7 @@ def ListDirToArrayAlt(infiles, dirlistfromtxt=False, followlink=False, listonly= ftype = 1; flinkname = inodetofile[finode]; fcurinode = inodetocatinode[finode]; - if(finode not in inodelist): + elif(finode not in inodelist): inodelist.append(finode); inodetofile.update({finode: fname}); inodetocatinode.update({finode: curinode});