MCPcopy Create free account
hub / github.com/freecodexyz/free-code / streamOnOpen

Function streamOnOpen

src/utils/readFileInRange.ts:218–222  ·  view source on GitHub ↗
(this: StreamState, fd: number)

Source from the content-addressed store, hash-verified

216}
217
218function streamOnOpen(this: StreamState, fd: number): void {
219 fstat(fd, (err, stats) => {
220 this.resolveMtime(err ? 0 : stats.mtimeMs)
221 })
222}
223
224function streamOnData(this: StreamState, chunk: string): void {
225 if (this.isFirstChunk) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected