import * as fs from 'fs'; export function directoryExists(path: string): boolean { return fs.existsSync(path) && fs.lstatSync(path).isDirectory(); }