104
async function readdir(path: string): Promise<string[]>;
105
async function readdir(path: string, options: { withFileTypes: true }): Promise<IDirent[]>;
106
>
async function readdir(path: string, options?: { withFileTypes: true }): Promise<(string | IDirent)[]> {
pfs.ts
107
>
try {
108
>
return await doReaddir(path, options);
109
>
} catch (error) {
110
// Workaround for #252361 that should be removed once the upstream issue
111
// in node.js is resolved. Adds a trailing dot to a root drive letter path