Node.js – How to check if Directory or File exists

Post Views: 88 In this tutorial we will learn How to check if a Directory or a File exists using Node.js. The built-in fs module in Node.js helps in working with file system. It provides different functions to create, rename, delete, edit files, directory and folder. fs.existSync() function checks if a provided file or a … Continue reading Node.js – How to check if Directory or File exists