MCPcopy Create free account
hub / github.com/cloudflare/computer / readEntry

Function readEntry

packages/computer/src/workspace.test.ts:90–102  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

88 };
89 },
90 async readEntry(path) {
91 const entry = files.get(path);
92 if (entry === undefined) return null;
93 return {
94 kind: "file",
95 rev: 0,
96 path,
97 mode: entry.mode,
98 mtime: entry.mtime,
99 size: entry.size,
100 chunks: entry.chunks,
101 };
102 },
103 async hasObjects(hashes) {
104 return hashes.filter((h) => blobs.has(hex(h)));
105 },

Callers

nothing calls this directly

Calls 1

getMethod · 0.65

Tested by

no test coverage detected