Skip to content

Commit

Permalink
Fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
AkiChase committed Nov 9, 2022
1 parent fe23990 commit ef8ee89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tinypng_unlimited/tiny_img.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ def compress_from_file_list(cls, file_list, new_dir=None, upload_timeout=None, d
file_name = os.path.basename(old_path)
# 默认下覆盖原文件
new_path = os.path.abspath(os.path.join(new_dir, file_name)) if new_dir else old_path
future_list.append(pool.submit(cls.compress_from_file, old_path, new_path,
future_list.append(pool.submit(cls.compress_from_file, old_path, new_path, True,
upload_timeout, download_timeout))

for future in as_completed(future_list):
Expand Down

0 comments on commit ef8ee89

Please sign in to comment.