Skip to content

Commit

Permalink
upload only supports files.
Browse files Browse the repository at this point in the history
  • Loading branch information
montaguethomas committed Jun 15, 2024
1 parent 64bca54 commit 735e3b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,9 +192,9 @@ def process_file(filename):
if os.path.isdir(slackmoji_file):
for file in os.listdir(slackmoji_file):
filename = os.path.join(slackmoji_file, file)
process_file(filename)
if os.path.isfile(filename): process_file(filename)
else:
process_file(slackmoji_file)
if os.path.isfile(slackmoji_file): process_file(slackmoji_file)
print("\nUploaded {} emojis. ({} already existed)".format(uploaded, skipped))


Expand Down

0 comments on commit 735e3b0

Please sign in to comment.