Skip to content

Commit

Permalink
#5 顯示上傳進度
Browse files Browse the repository at this point in the history
  • Loading branch information
qcl committed Jul 25, 2016
1 parent d4b65c9 commit eff547f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions qclickr.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,13 @@ def uploadDir(path):
albumName = dirname
for filename in photos:
filepath = os.path.join(path, filename)
i += 1
if os.path.isfile(filepath):
uploadPhoto(filepath, newAlbum = True)
print i,'/',len(photos)
elif os.path.isdir(filepath):
uploadDir(filepath)
currentPhotosetsPhotos['photos'] = []
else:
pass

Expand Down

0 comments on commit eff547f

Please sign in to comment.