MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / guestFileSize

Function guestFileSize

e2e/src/vm/desktop.ts:138–141  ·  view source on GitHub ↗
(ip: string, remote: string)

Source from the content-addressed store, hash-verified

136};
137
138const 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`

Callers 1

recordGuestScreenFunction · 0.85

Calls 1

guestSshFunction · 0.85

Tested by

no test coverage detected