Giter VIP home page Giter VIP logo

cli_missing_lip_files's Introduction

Find lonely files

This is a simple rust project that compares files in a folder and its subfolders. It compares the files based on their file_names and prints out the files that are lonely.

For example, if you have files:

  • file1.txt
  • file2.txt
  • file3.txt
  • file1.md

This program will print out file2.txt and file3.txt as lonely files, because they don't have a corresponding file with the same name but different extension.

How to run the code

  1. Clone the repository
  2. Open the terminal and navigate to the project folder
  3. Run the following command to install the required packages
    cargo build
  1. Run the following command to run the project
    cargo run -- [pathToFolderToBeScaned]

There are additional options that can be used with the command. To see the options run the following command

    cargo run -- --help

Example

Main branch has a folder named testFolder, you can test the code on this folder, by running the following command

    cargo run -- testFolder

If you want to compare only specific file extensions, you can pass in an option to look for specific file extensions. For example, to look for only .lip and .maw files, you can run the following command

    cargo run -- testFolder lip maw

cli_missing_lip_files's People

Contributors

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