const entries = await provider.readdir(resource);
const resolvedEntries = await Promises.settled(entries.map(async ([name, type]) => {
const childResource = providerExtUri.joinPath(resource, name);
const childStat = resolveMetadata ? await provider.stat(childResource) : { type };
return await this.toFileStat(provider, childResource, childStat, entries.length, resolveMetadata, recurse);
} catch (error) {
this.logService.trace(error);