return a array that contains file list of addedFileList, deletedFileList and updatedFileList
npm i folder-compare
need to create tow folder name "start_file" and "update_file" at root directory
inside first folder put your old folder or file list
inside second folder put your updated folder or file list
const compare_folders_path = require("folder-compare"); (async () => { let data = await compare_folders_path("start_file", "updated_file"); console.log("data : ", data); })();
compare_folders_path() function return arr that include [addedFileList, deletedFileList, diffInFileList]
addedFileList : newly created file list
deletedFileList : deleted file list
diffInFileList : update file data list