Skip to content

Commit c70095a

Browse files
authored
Add files via upload
1 parent f1b615c commit c70095a

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

pyarchivefile.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5926,10 +5926,11 @@ def AppendFilesWithContent(infiles, fp, dirlistfromtxt=False, extradata=[], json
59265926
ftype = 0
59275927
if(hasattr(os.path, "isjunction") and os.path.isjunction(fname)):
59285928
ftype = 13
5929-
elif(hasattr(fstatinfo, "st_blocks") and fstatinfo.st_blocks * 512 < fstatinfo.st_size):
5930-
ftype = 12
59315929
elif(stat.S_ISREG(fpremode)):
5932-
ftype = 0
5930+
if(hasattr(fstatinfo, "st_blocks") and fstatinfo.st_blocks * 512 < fstatinfo.st_size):
5931+
ftype = 12
5932+
else:
5933+
ftype = 0
59335934
elif(stat.S_ISLNK(fpremode)):
59345935
ftype = 2
59355936
elif(stat.S_ISCHR(fpremode)):
@@ -6048,6 +6049,7 @@ def AppendFilesWithContent(infiles, fp, dirlistfromtxt=False, extradata=[], json
60486049
fcencoding = "UTF-8"
60496050
curcompression = "none"
60506051
if not followlink and ftype in data_types:
6052+
print("not follow ",ftype)
60516053
with open(fname, "rb") as fpc:
60526054
shutil.copyfileobj(fpc, fcontents, length=__filebuff_size__)
60536055
typechecktest = CheckCompressionType(fcontents, filestart=0, closefp=False)

0 commit comments

Comments
 (0)