Skip to content

Commit

Permalink
Merge pull request #16 from Projoke/master
Browse files Browse the repository at this point in the history
修复头像文件大小为0时的bug
  • Loading branch information
yangxuanxc authored Jun 23, 2018
2 parents 1adc30c + 492f9ac commit 351465a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion analyse.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def mergeImage():
#遍历文件夹获取所有图片的路径
for root, dirs, files in os.walk(dirName):
for file in files:
if "jpg" in file:
if "jpg" in file and os.path.getsize(os.path.join(root, file)) > 0:
photo_path_list.append(os.path.join(root, file))

#print(photo_path_list)
Expand Down

0 comments on commit 351465a

Please sign in to comment.