Node.js – How to rename a Directory | Folder

Post Views: 99 In this tutorial, we will learn how to rename a directory in Node.js. Node.js provides a built-in module named fs which helps in working with file system. We will use fs module to rename the directory or a folder. fs.rename() function: fs.rename() function is a asynchronous function. This function accepts 3 parameters … Continue reading Node.js – How to rename a Directory | Folder