0.0.5 • Published 5 years ago
remove-duplicate-files v0.0.5
This module helps in removing duplicate files from a directory.
Note: 1. Takes care of nested directory structure as well. 2. Uses MD5 hash values as checksum for file. 3. Usage - import method "removeDuplicates" and call it with path, on promise resolve, it returns the Set of deleted files.
let { removeDuplicates } = require('remove-duplicate-files');
removeDuplicates('path/to/directory').then(resp=>{ console.log(resp); }, err=>{ console.err(err); });