feat: --retry -1 无限次自动补传

This commit is contained in:
AskaEth committed 2026-08-22 14:05:26 +08:00
1 parent 81857d6343
commit ae875cb710
2 files changed
+17 -7

No files matched your search

+4
View File
@@ -366,3 +366,7 @@ def test_count_files_only_files(tmp_path):
(tmp_path / "a.txt").write_text("x")
(tmp_path / "dir1").mkdir()
assert transfer.count_files(str(tmp_path)) == 1 # 目录不计
def test_parse_args_retry_infinite():
args = transfer.parse_args(["--retry", "-1", "s", "d"])
assert args.retry == -1 # 无限重试