-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: Make progress file path respect --config-dir parameter (#717)
## 问题 进度文件路径被硬编码为使用 `const.ProgressPath`,而没有遵循用户通过 `--config-dir` 参数指定的配置目录。相比之下,其他配置文件(token, settings等)都正确使用了指定目录。 ## 修改内容 - 在 `__init__` 方法中添加了 `self._progresspath` 的初始化 - 更新所有进度文件操作,使用 `self._progresspath` 替代 `const.ProgressPath` - 使用 `configdir + os.sep + filename` 的方式统一配置文件的路径拼接风格 ## 受影响的方法 - `_update_progress_entry()` - `_delete_progress_entry()` - `_upload_file_slices()` 之前并发提交时遇到大文件会因为进度文件冲突报错,修改后设置各自的config-dir就不会报错了。
- Loading branch information
1 parent
9e15307
commit fa2e87f
Showing
1 changed file
with
8 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters