Skip to content

Commit 008334e

Browse files
authored
Add files via upload
1 parent 548a305 commit 008334e

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

pycatfile.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5933,10 +5933,11 @@ def AppendFilesWithContent(infiles, fp, dirlistfromtxt=False, extradata=[], json
59335933
ftype = 0
59345934
if(hasattr(os.path, "isjunction") and os.path.isjunction(fname)):
59355935
ftype = 13
5936-
elif(hasattr(fstatinfo, "st_blocks") and fstatinfo.st_blocks * 512 < fstatinfo.st_size):
5937-
ftype = 12
59385936
elif(stat.S_ISREG(fpremode)):
5939-
ftype = 0
5937+
if(hasattr(fstatinfo, "st_blocks") and fstatinfo.st_blocks * 512 < fstatinfo.st_size):
5938+
ftype = 12
5939+
else:
5940+
ftype = 0
59405941
elif(stat.S_ISLNK(fpremode)):
59415942
ftype = 2
59425943
elif(stat.S_ISCHR(fpremode)):

0 commit comments

Comments
 (0)