in eng/tools/typespec-validation/src/utils.ts [26:28]
export async function isDirectory(path: string) { return (await stat(path)).isDirectory(); }