* 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,
)
| 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. |
no test coverage detected