MCPcopy Create free account
hub / github.com/cloudflare/agents / toStateStat

Function toStateStat

packages/shell/src/helpers.ts:110–122  ·  view source on GitHub ↗
(input: {
  type: StateEntryType;
  size: number;
  mtime: Date;
  mode?: number;
})

Source from the content-addressed store, hash-verified

108}
109
110export function toStateStat(input: {
111 type: StateEntryType;
112 size: number;
113 mtime: Date;
114 mode?: number;
115}): StateStat {
116 return {
117 type: input.type,
118 size: input.size,
119 mtime: input.mtime,
120 mode: input.mode
121 };
122}
123
124export function parseJsonFileContent(content: string, path: string): unknown {
125 try {

Callers 1

tryStatMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected