const fs = require("fs"); const hasDirOrFile = (path: string) => { return fs.existsSync(path); }; export default hasDirOrFile;