MCPcopy Index your code
hub / github.com/continuedev/continue / getFileStats

Method getFileStats

extensions/vscode/src/VsCodeIde.ts:222–238  ·  view source on GitHub ↗
(files: string[])

Source from the content-addressed store, hash-verified

220 }
221
222 async getFileStats(files: string[]): Promise<FileStatsMap> {
223 const pathToLastModified: FileStatsMap = {};
224 await Promise.all(
225 files.map(async (file) => {
226 const stat = await this.ideUtils.stat(
227 vscode.Uri.parse(file),
228 false /* No need to catch ENOPRO exceptions */,
229 );
230 pathToLastModified[file] = {
231 lastModified: stat!.mtime,
232 size: stat!.size,
233 };
234 }),
235 );
236
237 return pathToLastModified;
238 }
239
240 async getRepo(dir: string): Promise<Repository | undefined> {
241 return this.ideUtils.getRepo(vscode.Uri.parse(dir));

Callers

nothing calls this directly

Calls 1

statMethod · 0.80

Tested by

no test coverage detected