This commit is contained in:
jxxghp
2025-01-07 20:58:27 +08:00
parent 0dc20cd9b4
commit 6f593beeed
5 changed files with 5 additions and 4 deletions
+1 -1
View File
@@ -114,7 +114,7 @@ class StorageChain(ChainBase):
""" """
return self.run_module("storage_usage", storage=storage) return self.run_module("storage_usage", storage=storage)
def support_transtype(self, storage: str) -> Optional[str]: def support_transtype(self, storage: str) -> Optional[dict]:
""" """
获取支持的整理方式 获取支持的整理方式
""" """
+1 -1
View File
@@ -109,7 +109,7 @@ class FileManagerModule(_ModuleBase):
def init_setting(self) -> Tuple[str, Union[str, bool]]: def init_setting(self) -> Tuple[str, Union[str, bool]]:
pass pass
def support_transtype(self, storage: str) -> Optional[Dict[str, str]]: def support_transtype(self, storage: str) -> Optional[dict]:
""" """
支持的整理方式 支持的整理方式
""" """
@@ -30,6 +30,7 @@ class AliPan(StorageBase, metaclass=Singleton):
# 支持的整理方式 # 支持的整理方式
transtype = { transtype = {
"copy": "复制",
"move": "移动", "move": "移动",
} }
+1 -1
View File
@@ -252,7 +252,7 @@ class Monitor(metaclass=Singleton):
self.transferchain.do_transfer( self.transferchain.do_transfer(
fileitem=FileItem( fileitem=FileItem(
storage=storage, storage=storage,
path=str(event_path), path=str(event_path).replace("\\", "/"),
type="file", type="file",
name=event_path.name, name=event_path.name,
basename=event_path.stem, basename=event_path.stem,
+1 -1
View File
@@ -45,4 +45,4 @@ class StorageUsage(BaseModel):
class StorageTransType(BaseModel): class StorageTransType(BaseModel):
# 传输类型 # 传输类型
transtype: Optional[str] = None transtype: Optional[dict] = Field(default_factory=dict)