From 4bb027a9ba1785969a0122714e7b46822e2ba603 Mon Sep 17 00:00:00 2001 From: LeeCQ Date: Sun, 3 Mar 2024 00:33:02 +0800 Subject: [PATCH] =?UTF-8?q?UPLOAD=20=E6=97=B6=E8=B6=85=E6=97=B6=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=E4=B8=BA300s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- alist_sync/d_worker.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/alist_sync/d_worker.py b/alist_sync/d_worker.py index 2a2f035..b55e8a8 100644 --- a/alist_sync/d_worker.py +++ b/alist_sync/d_worker.py @@ -1,7 +1,6 @@ import atexit import datetime import logging -import os import threading import time from pathlib import Path @@ -165,6 +164,7 @@ def copy_single_stream(self): "File-Path": urllib.parse.quote(str(self.target_path.as_posix())), }, content=fs, + timeout=300, ) assert res.code == 200 @@ -182,10 +182,6 @@ def copy_type(self): self.target_path.parent.mkdir(parents=True, exist_ok=True) self.copy_single_stream() - assert ( - self.target_path.re_stat(retry=5, timeout=2).size - == self.source_path.stat().size - ) return self.update(status="copied") def delete_type(self):