files-importer is a Node.js command-line tool that synchronously copies the contents of a directory (including subdirectories recursively) to another location without creating duplicate files. It can be used to import only images and videos that have not already been imported from a camera or a memory card. files-importer is written using functional programming (fp-ts) in TypeScript.
- files-importer runs on Mac, Linux and Windows, just
git checkout
this repository and install its dependencies usingnpm install
. - Open the command line and run
npm start source target
wheresource
andtarget
are paths to directories, examplenpm start ~/Documents/my-pictures-library ~/Documents/new-pictures
files-importer
will compare the two directories and copy the contents fromsource
totarget
only iftarget
does not have the file present insource
.