Urgent.News

What's breaking now, across thousands of outlets.

Tech

Built a duplicate file finder in Java, here's how it works

So I've been working on this little project called DupeLens. It's basically a Java CLI that finds duplicate files in your folders and generates an HTML report. Nothing crazy, just something I thought would be useful. Why I made it I wanted a simple way to check which files were duplicated without worrying about accidentally deleting something important. So I built one myself. How it works It's…

A Java-based duplicate file finder named DupeLens has been created, offering a straightforward command-line interface for identifying and reporting duplicated files in folders. The program operates by first comparing file sizes; if they differ, there's no need to proceed with further comparison. For files with matching sizes, it employs SHA-256 hashing to verify if their contents are the same.

Upon completion, DupeLens presents the found duplicates in the terminal and provides an optional HTML report for easier visualization. No files are altered, deleted, or moved during this process. To utilize DupeLens, users need a Java version of 17 or later. They can download the JAR file from the GitHub repository and execute it by running the command "java -jar dupelens.jar ./your-folder --html report.html", replacing "your-folder" with the path to the desired directory. After running the command, the resulting HTML report can be accessed using any web browser.

DupeLens was initially released in version 1.0.0, indicating it is in an early stage of development. The programmer has expressed plans to incorporate additional features such as exclusion patterns and JSON output, while also welcoming suggestions and contributions from the community. The project is open-source and licensed under the MIT license, with the source code available on GitHub at https://github.com/illusionoftalha/dupelens.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Build a Voice Cloning Demo App

Why Voice Cloning Is the Next Big Thing in Voice AI Voice AI has gone from “talk to your phone” to “talk to your phone’s voice.” Text‑to‑speech (TTS) engines have improved dramatically, but the real…

More from Sunday 1 November →