修复 下载器监控构造的原盘路径需以/结尾

This commit is contained in:
景大侠
2026-01-12 22:54:19 +08:00
parent 843faf6103
commit b9b7b00a7f

View File

@@ -873,7 +873,7 @@ class TransferChain(ChainBase, metaclass=Singleton):
state, errmsg = self.do_transfer(
fileitem=FileItem(
storage="local",
path=file_path.as_posix(),
path=file_path.as_posix() + ("/" if file_path.is_dir() else ""),
type="dir" if not file_path.is_file() else "file",
name=file_path.name,
size=file_path.stat().st_size,