Giter Site home page Giter Site logo

primus27 / bulk-file-compare Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 80 KB

Compare files (with matching names) in different directories. For use in digital forensics to compare between logical and physical views.

License: GNU General Public License v3.0

Python 100.00%

bulk-file-compare's Introduction

Bulk File Comparison

Features

  • Compare files in two directories to see whether they are identical.
    • Check files contents using cmp.
  • Report if a file was not matched against anything.

Requirements and Installation

  • Python 3.6+
  • Linux (tested)
  • Install all dependencies from the requirements.txt file. pip3 install -r requirements.txt

Arguments

Required arguments:

  • -p1 PATH1 || --path1 PATH1

    • Main path (absolute or relative). This is the path which you want every file checked.
  • -p2 PATH2 || --path2 PATH2

    • Sub path (absolute or relative). This is the path where files may be skipped if they are not in path1.

Optional arguments:

  • -o || --toOutput

    • Removes ANSI escape sequences for terminal colouring. It is useful for redirecting.
    • Default: Disabled
  • -s || --silent

    • If a file in path1 is not found in path2, hide in output.
    • Default: Disabled
  • --version

    • Display program version

Usage

  • Run 'compare.py' in terminal with arguments (see above)

Starter command(s)

  • Run

    • python3 compare.py -p1 "full_physical_path" -p2 "full_logical_path"
  • Run w/ output

    • python3 compare.py -p1 "full_physical_path" -p2 "full_logical_path" -o >> FILE.txt

Changelog

Version 1.0 - Initial release

  • Compare files in two directories
  • Hide non paired files using silent mode
  • Clear terminal colouring using output mode

Version 1.1 - Bug fixes

  • Fixed bugs that prevented files from being properly compared

bulk-file-compare's People

Contributors

primus27 avatar

Stargazers

 avatar

Watchers

 avatar  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.