Use fs.exists instead of path.exists