This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// find duplicate files with Node.js, cuz, you know, it's useful | |
var Promise = require('bluebird'); | |
var fs = Promise.promisifyAll(require('fs')); | |
var crypto = require('crypto'); | |
var path = require('path'); | |
var pathA = "."; // folder you're in, wherever that might be | |
var pathB = "/path/to/the/directory/you/want/to/compare/it/to"; // yes, yes, argv, etc, but I haven't bothered yet, ok! |