mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-05-04 12:40:03 +08:00
feat:切换使用python-115
This commit is contained in:
@@ -151,8 +151,6 @@ def rename(fileitem: schemas.FileItem,
|
||||
"""
|
||||
if not new_name:
|
||||
return schemas.Response(success=False, message="新名称为空")
|
||||
if fileitem.storage != 'local' and not fileitem.fileid:
|
||||
return schemas.Response(success=False, message="资源ID获取失败")
|
||||
result = StorageChain().rename_file(fileitem, new_name)
|
||||
if result:
|
||||
if recursive:
|
||||
|
||||
Reference in New Issue
Block a user