import * as fs from 'fs'; export function isDirectory(path: string) { try { return fs.statSync(path).isDirectory(); } catch (_) { return false; } }