Coder Social home page Coder Social logo

compare-images's Introduction

Directory Comparison Tool

Description

This tool is designed to compare the contents of two directories, typically representing different sets of container images, and output the comparison in a CSV format. It is particularly useful for visualizing which images exist in either one or both specified directories.

Features

  • Compares two directories and lists all unique subdirectories.
  • Outputs a CSV file indicating the presence of each subdirectory in each of the compared directories.
  • Easy to use with command-line arguments.

Requirements

  • Python 3.x

Installation

No installation is needed. Just ensure you have Python 3.x installed on your system.

Usage

To use this script, navigate to the directory containing directory_compare.py and run:

python3 compare_images.py [public directory path] [private directory path]

Replace [public directory path] and [private directory path] with the actual paths of your directories.

Arguments:

  • public directory path: The path to the first directory (typically representing public images).
  • private directory path: The path to the second directory (typically representing private images).

Output:

The script will output a CSV file named images.csv in the same directory as the script. The CSV format is as follows:

  • Image: The name of the image (or subdirectory).
  • Found in Public Images: Indicates if the image is found in the first directory ("YES" or "NO").
  • Found in Private Images: Indicates if the image is found in the second directory ("YES" or "NO").

compare-images's People

Contributors

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