Code Monkey home page Code Monkey logo

broom's Introduction

Broom

incurable hoarder`s helpful friend

         _
        //
       // 
      //
     // 
  /####/
 //////
///////

Broom is a command line utility to locate and manage duplicate and empty files


Installation

"Compile it yourself" way

  • clone this repository

git clone https://github.com/Unbewohnte/broom

  • proceed to the directory

  • compile manually or with cmake (in build/ run:)

cmake .

cmake --build .

compiled binary for your platform will be in the newly created bin directory, you are free to put it wherever you desire

if you're on GNU/Linux - you can run install.sh for broom to become system-wide accessible

"The lazy" way


Usage

broom [FLAGS..] [COMMAND] [DIRECTORY]

[FLAGS]

  • -v or --version -> print version information and exit
  • -h or --help -> print this message and exit
  • -od or --output-directory -> path to the directory to save results file in

[COMMANDS]

  • sweep -> scan for duplicate files, REMOVE empty files and REPLACE other duplicates with symlinks
  • scan -> scan and save results in a file without removing anything [DEFAULT]

[DIRECTORY] is the path to the directory that will be searched for duplicate files

Examples

  • broom scan -od . ~/homework
  • broom sweep ~/homework

after the scan the results file will be saved in your current working directory, unless you specified it to be somewhere else. Scan results file contains a list of duplicate files that are grouped together so you can see EXACTLY WHERE each duplicate is in the filesystem.


License

GPLv3


TODO

  • Make it go P A R A L L E L
  • Output approximate size that could be freed
  • Remove duplicates and create symlinks

broom's People

Contributors

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