https://github.com/luciopaiva/unlike
Shows differences between two directories
https://github.com/luciopaiva/unlike
Last synced: 3 months ago
JSON representation
Shows differences between two directories
- Host: GitHub
- URL: https://github.com/luciopaiva/unlike
- Owner: luciopaiva
- Created: 2014-11-21T23:17:26.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-12-07T02:38:25.000Z (almost 11 years ago)
- Last Synced: 2025-06-10T05:04:21.252Z (4 months ago)
- Language: JavaScript
- Size: 504 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
unlike
======Command line tool to point differences between two folders.
``unlike`` will compare both folders and give a detailed description of what is different from one
folder to the other. ``unlike`` is safe to use; it will not change the contents of any folder.## Installation
npm install --global unlike
It should work fine in Linux and OSX. I don't expect it to work in Windows because I haven't tested yet. Let me know if it does.
## How to use
unlike [options]
Available options:
* ``-s``, ``--size``: compare file sizes
* ``-a``, ``--atime``: compare file access times
* ``-m``, ``--mtime``: compare file modified times
* ``-c``, ``--ctime``: compare file change times
* ``-v``, ``--verbose``: toggle verbose modeIf no option is passed, ``unlike`` treats files as equal sufficing that their names are equal, even if their sizes differ.
Beware option ``-c`` does not compare file *creation* times, but file *change* times! See [what Google has to say about it](https://www.google.com/#q=Difference+between+mtime%2C+ctime+and+atime).
## Example
Assuming the following folder structure:
f1/
a // file contains string "123\n"
b // file contains string "456\n"
f2/
a // file contains string "123\n"
b // file is empty
dIssuing the command below will produce the following output:

## To do
Add the following checks:
* files having different contents (maybe using [checksum](https://github.com/dshaw/checksum))
* files with different access modes