feat: rsync -v 文件明细实时滚动日志栏 + 日志行数上限防刷屏
This commit is contained in:
1 parent
60cbf5a206
commit
c61f1b09c8
1 file changed
+3
-3
+3
-3
@@ -262,7 +262,7 @@ class RsyncBackend:
|
||||
exclude_from: str = "", skip_existing: bool = False,
|
||||
append: bool = True, **_) -> list[str]:
|
||||
src = src.rstrip("/") + "/"
|
||||
cmd = ["rsync", "-a", "--info=progress2"]
|
||||
cmd = ["rsync", "-a", "-v", "--info=progress2"]
|
||||
if checksum:
|
||||
cmd.append("--checksum")
|
||||
if skip_existing:
|
||||
@@ -757,8 +757,8 @@ class TransferApp(App):
|
||||
yield Sparkline([0], summary_function=max, id="speed-spark")
|
||||
yield Static("", id="speed-stats")
|
||||
with Horizontal(id="logs"):
|
||||
yield RichLog(id="file-log", highlight=True, markup=True)
|
||||
yield RichLog(id="error-log", highlight=True, markup=True)
|
||||
yield RichLog(id="file-log", highlight=True, markup=True, max_lines=200)
|
||||
yield RichLog(id="error-log", highlight=True, markup=True, max_lines=100)
|
||||
with Horizontal(id="cmd-bar"):
|
||||
yield Input(placeholder="传输任务: 源路径 目标路径 [--backend rsync|rclone|tar --bwlimit 30000 ...] | help / quit", id="cmd")
|
||||
yield Footer()
|
||||
|
||||
Reference in new issue
Block a user