MCPcopy Index your code
hub / github.com/github/copilot-sdk / stat

Function stat

nodejs/test/e2e/session_fs_sqlite.e2e.test.ts:169–178  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

167 return provider.exists(sp(path));
168 },
169 async stat(path: string): Promise<SessionFsFileInfo> {
170 const st = await provider.stat(sp(path));
171 return {
172 isFile: st.isFile(),
173 isDirectory: st.isDirectory(),
174 size: st.size,
175 mtime: new Date(st.mtimeMs).toISOString(),
176 birthtime: new Date(st.birthtimeMs).toISOString(),
177 };
178 },
179 async mkdir(path: string, recursive: boolean, mode?: number): Promise<void> {
180 await provider.mkdir(sp(path), { recursive, mode });
181 },

Callers

nothing calls this directly

Calls 2

spFunction · 0.70
statMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…