Skip to content

rolibb/search-duplicate-files

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Search Duplicate Files

The key aspects of this challenge is the number of the files and size, for this I used streams of Nodejs to handle big files without need a lot of memory RAM.

How to use

Please send the path where you want to search duplicate files

const fileinfo = require("./fileinfo");
fileinfo.getDuplicateFiles("./files", (err, duplicateFiles) => {});

How to run service

Service will run on port 3000

npm run service

Documentation to use REST service

It will return all files duplicates including the path where is located the file.

GET /duplicateFiles

Example Response

["/files/test.txt", "/files/test1.txt", "/files/tmp/test3.txt"]

Run Unit tests

npm run test

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published