Coder Social home page Coder Social logo

dircmp-rs's Introduction

dircmp-rs

dircmp-rs is a simple command-line tool written in Rust for comparing directory structures. It helps you identify files that exist in one directory but not in another, making it useful for tasks such as validating backups, syncing folders, or general directory comparison.

Features

  • Indexing: Efficiently indexes the contents of source and target directories.
  • Exclusion: Supports excluding specific files or directories during the comparison.
  • Parallel Processing: Utilizes parallel processing with Rayon to speed up the comparison process.
  • Logging: Integrates logging using the env_logger crate for informative messages.
  • Print Option: Provides an option to print the differences to the console.

Installation

Clone the repository and build the project using Cargo:

git clone https://github.com/tonychg/dircmp-rs.git
cd dircmp-rs
cargo build --release

Usage

dircmp-rs <source_directory> <target_directory> [--print] [--exclude <excluded_item> ...]
  • --print: Prints the differences to the console.
  • --exclude: Exclude specific files or directories during the comparison.

Examples

# Compare two directories, print differences
dircmp-rs /path/to/source /path/to/target --print

# Compare two directories, exclude specific files
dircmp-rs /path/to/source /path/to/target --exclude file1.txt file2.txt

Development

Contributions and bug reports are welcome! Feel free to submit issues or create pull requests on the GitHub repository.

License

This project is licensed under the ISC License - see the LICENSE file for details.

dircmp-rs's People

Stargazers

 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.