Skip to content

Allows you to specify to folders which should be merged into one

License

Notifications You must be signed in to change notification settings

m-dressler/merge-folders

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@md/merge-folders

Exports a function mergeFolders which allows you to specify to folders which should be merged into one.

The function will move each file for toMerge into target where no equivalent file exists. If both have the same file, it will compute a SHA-256 hash for each file's content to check if they're the same. If not, it will keep the file in toMerge for manual resolution.

Finally, it will clean up the toMerge directory removing any empty subdirectories including itself if no files has conflicts.

About

Allows you to specify to folders which should be merged into one

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published