Skip to content

Commit

Permalink
fixed specific symbol in path
Browse files Browse the repository at this point in the history
  • Loading branch information
zaxtyson committed Oct 8, 2020
1 parent 56edfef commit 91407ea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lanzou/api/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from lanzou.api.core import LanZouCloud

version = '2.5.7'
version = '2.5.7.1'

__all__ = ['utils', 'types', 'models', 'LanZouCloud', 'version']
1 change: 1 addition & 0 deletions lanzou/api/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1224,6 +1224,7 @@ def failed_callback(code, file):
if mkdir: # 自动创建子文件夹
save_path = save_path + os.sep + folder_detail.folder.name
if not os.path.exists(save_path):
save_path = save_path.replace('*', '_') # 替换特殊字符以符合路径规则
os.makedirs(save_path)

# 不是大文件分段数据,直接下载
Expand Down

0 comments on commit 91407ea

Please sign in to comment.