fix alipan

This commit is contained in:
jxxghp
2024-11-24 17:55:08 +08:00
parent 28805e9e17
commit 7f83d56a7e
4 changed files with 14 additions and 24 deletions
@@ -272,6 +272,9 @@ class Rclone(StorageBase):
def upload(self, fileitem: schemas.FileItem, path: Path, new_name: str = None) -> Optional[schemas.FileItem]:
"""
上传文件
:param fileitem: 上传目录项
:param path: 本地文件路径
:param new_name: 上传后文件名
"""
try:
new_path = Path(fileitem.path) / (new_name or path.name)