* Retrieve all entries of a directory from the given URI. * * @param uri - The URI of the directory to read. * @param ignoreMissingProviders - Optional. If `true`, missing file system providers will be ignored. Defaults to `true`. * @returns A promise that resolves to an array of tuples,
(
uri: vscode.Uri,
ignoreMissingProviders: boolean = true,
)
| 180 | * and its type (`vscode.FileType`), or `null` if the scheme is unsupported or the provider is missing and `ignoreMissingProviders` is `true`. |
| 181 | */ |
| 182 | async readDirectory( |
| 183 | uri: vscode.Uri, |
| 184 | ignoreMissingProviders: boolean = true, |
| 185 | ): Promise<[string, vscode.FileType][] | null> { |
| 186 | return await this.fsOperation( |
| 187 | uri, |
| 188 | async (u) => { |
| 189 | return await vscode.workspace.fs.readDirectory(uri); |
| 190 | }, |
| 191 | ignoreMissingProviders, |
| 192 | ); |
| 193 | } |
| 194 | |
| 195 | /** |
| 196 | * Performs a file system operation on the given URI using the provided delegate function. |
no test coverage detected