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

View File

@@ -114,7 +114,7 @@ class StorageChain(ChainBase):
"""
return self.run_module("storage_usage", storage=storage)
def support_transtype(self, storage: str) -> Optional[str]:
def support_transtype(self, storage: str) -> Optional[dict]:
"""
获取支持的整理方式
"""

View File

@@ -109,7 +109,7 @@ class FileManagerModule(_ModuleBase):
def init_setting(self) -> Tuple[str, Union[str, bool]]:
pass
def support_transtype(self, storage: str) -> Optional[Dict[str, str]]:
def support_transtype(self, storage: str) -> Optional[dict]:
"""
支持的整理方式
"""

View File

@@ -30,6 +30,7 @@ class AliPan(StorageBase, metaclass=Singleton):
# 支持的整理方式
transtype = {
"copy": "复制",
"move": "移动",
}

View File

@@ -252,7 +252,7 @@ class Monitor(metaclass=Singleton):
self.transferchain.do_transfer(
fileitem=FileItem(
storage=storage,
path=str(event_path),
path=str(event_path).replace("\\", "/"),
type="file",
name=event_path.name,
basename=event_path.stem,

View File

@@ -45,4 +45,4 @@ class StorageUsage(BaseModel):
class StorageTransType(BaseModel):
# 传输类型
transtype: Optional[str] = None
transtype: Optional[dict] = Field(default_factory=dict)