Skip to content

this package help to compare two directory and identify added, updated, and deleted file list

Notifications You must be signed in to change notification settings

avinashDhanani/directory-compare

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 

Repository files navigation

folder-compare

Introduction

this package help to compare two directory and identify added, updated, and deleted file list

return a array that contains file list of addedFileList, deletedFileList and updatedFileList

Usage

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

About

this package help to compare two directory and identify added, updated, and deleted file list

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published