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

Method stat

extensions/vscode/src/util/ideUtils.ts:161–172  ·  view source on GitHub ↗

* Retrieve metadata about a file from the given URI. * * @param uri - The URI of the file or directory to retrieve metadata about. * @param ignoreMissingProviders - Optional. If `true`, missing file system providers will be ignored. Defaults to `true`. * @returns A promise that resolves

(
    uri: vscode.Uri,
    ignoreMissingProviders: boolean = true,
  )

Source from the content-addressed store, hash-verified

159 * or `null` if the scheme is unsupported or the provider is missing and `ignoreMissingProviders` is `true`.
160 */
161 async stat(
162 uri: vscode.Uri,
163 ignoreMissingProviders: boolean = true,
164 ): Promise<vscode.FileStat | null> {
165 return await this.fsOperation(
166 uri,
167 async (u) => {
168 return await vscode.workspace.fs.stat(uri);
169 },
170 ignoreMissingProviders,
171 );
172 }
173
174 /**
175 * Retrieve all entries of a directory from the given URI.

Callers 7

fileExistsMethod · 0.95
getSkillFilesFromDirFunction · 0.80
getCommandsMapFunction · 0.80
fileExistsMethod · 0.80
getFileStatsMethod · 0.80
readFileMethod · 0.80
addEntireFileToContextFunction · 0.80

Calls 1

fsOperationMethod · 0.95

Tested by

no test coverage detected