Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/gibbok/files-importer
- Owner: gibbok
- License: mit
- Created: 2018-09-10T11:26:41.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-04T12:24:44.000Z (about 2 years ago)
- Last Synced: 2024-10-28T14:23:32.003Z (3 months ago)
- Topics: compare-data, compare-files, diff, filesystem, functional-programming
- Language: TypeScript
- Homepage:
- Size: 375 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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`.