(ip: string, remote: string)
| 136 | }; |
| 137 | |
| 138 | const guestFileSize = (ip: string, remote: string): Promise<number> => |
| 139 | guestSsh(ip, `stat -f%z ${remote} 2>/dev/null || stat -c%s ${remote} 2>/dev/null || echo 0`) |
| 140 | .then((r) => Number(r.stdout.trim() || "0")) |
| 141 | .catch(() => 0); |
| 142 | |
| 143 | /** |
| 144 | * Film the guest's screen for `seconds` and land it on the host as `localMp4` |
no test coverage detected