fix(transfer): expose file meta in intercept event (#6019)

This commit is contained in:
InfinityPacer
2026-06-29 06:44:40 +08:00
committed by GitHub
parent 36fb82b7aa
commit a4f6e13881
3 changed files with 81 additions and 0 deletions
+2
View File
@@ -388,6 +388,7 @@ class TransferInterceptEventData(ChainEventData):
Attributes:
# 输入参数
fileitem (FileItem): 源文件
meta (Any): 元数据
target_storage (str): 目标存储
target_path (Path): 目标路径
transfer_type (str): 整理方式(copy、move、link、softlink等)
@@ -401,6 +402,7 @@ class TransferInterceptEventData(ChainEventData):
# 输入参数
fileitem: FileItem = Field(..., description="源文件")
meta: Optional[Any] = Field(default=None, description="元数据")
mediainfo: Any = Field(..., description="媒体信息")
target_storage: str = Field(..., description="目标存储")
target_path: Path = Field(..., description="目标路径")