import type {Stats} from 'fs'; import {stat} from 'fs/promises'; export function gentleStat(path: string): Promise { return stat(path).catch(() => undefined); }