Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/gibbok/files-importer

files-importer is a Node.js command line tool, written in functional programming style, which synchronously copy the contents of a directory (include 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.
https://github.com/gibbok/files-importer

compare-data compare-files diff filesystem functional-programming

Last synced: about 2 months ago
JSON representation

files-importer is a Node.js command line tool, written in functional programming style, which synchronously copy the contents of a directory (include 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.

Awesome Lists containing this project

README

        

# files-importer

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](https://github.com/gcanti/fp-ts)) in TypeScript.

## Great! So how do I use it?

- files-importer runs on Mac, Linux and Windows, just `git checkout` this repository and install its dependencies using `npm install`.
- Open the command line and run `npm start source target` where `source` and `target` are paths to directories, example `npm start ~/Documents/my-pictures-library ~/Documents/new-pictures`
- `files-importer` will compare the two directories and copy the contents from `source` to `target` only if `target` does not have the file present in `source`.