GithubHelp home page GithubHelp logo

hashwalker's Introduction

HashWalker

HashWalker is a simple command-line tool that recursively walks through a directory, calculates the MD5 hash of each file, and saves the results to a CSV file. It can also compare two CSV files generated by the tool to detect new, modified, or deleted files.

Features

  • Walk through directories and subdirectories recursively
  • Calculate MD5 hashes for each file
  • Save file hashes to a CSV file
  • Compare two CSV files to detect file changes

Usage

HashWalker accepts three command-line arguments:

  • -dir: The directory you want to walk through and hash. When this flag is used, the tool will calculate file hashes and save them to a CSV file named "file_hashes.csv" in the current working directory.
  • -baseline: The baseline CSV file for comparison. This file should contain file hashes generated by HashWalker.
  • -csv: The second CSV file for comparison. This file should also contain file hashes generated by HashWalker.

To generate a CSV file with file hashes:

./hashwalker --dir=/path/to/directory

To compare two CSV files:

./hashwalker --baseline=baseline.csv --csv=comparison.csv

When comparing CSV files, HashWalker will print new, modified, or deleted files to the console.

Installation

To install and build HashWalker, make sure you have Go installed, and then run:

git clone https://github.com/yourusername/hashwalker.git
cd hashwalker
go build

This will create a binary named hashwalker in the current directory. You can move this binary to a directory in your PATH for easier access.

License

This project is released under the MIT License.

hashwalker's People

Contributors

mustafanafizdurukan avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.