Giter Club home page Giter Club logo

duplicates's Introduction

Duplicates

Build result

The aim of the project is to provide an easy tool to find duplicated files in a directory. And compare two directories content.

Prerequirements

The easyest way to start developing is to use a virtualenv.

To install the virtualenv check the instruction on the project page: Virtualenv

Development enviroment

Create the virtualenv:

make ENV

you should now find a env directory in the project.

Enter the virtualenv

source env/bin/activate

Install packages

make UPDATE_ENV

Test the project

./bin/duplicates --index --no-store --progress --log-level=DEBUG test/files

Enjoy the development

Setup Git hooks

It would be a good idea to setup the git hooks to test the project before the commit and the push, the following are the suggested hooks for the project.

.git/hooks/pre-commit

#!/bin/bash
make FLAKE8

.git/hooks/pre-push

#!/bin/sh
remot="$1"
url="$2"
make TESTS

Install the application

python setup.py sdist
python setup.py install

duplicates's People

Contributors

lucalanziani avatar

Watchers

 avatar  avatar  avatar

duplicates's Issues

Create 'purge()' method in Indexer

Right now when you re-index a directory the indexer skip files already present in the previous index.

Currently the indexer doesn't check if some files in the index actually still exist in the directory. Implement this function with the purge() method.

Fix --progress counter

Running the following command I've got 118.06%, something is evidently wrong here

(env)> $ bin/duplicates --progress --index /run/media/lucalanziani/Backup/Foto *.jpg *.nef *.CR2
71571/60620/71165 (118.06%) files

To add some context the folder already had a .duplicates.json.gz file

Write README.md

Add the aim of the project and some example on how to run it and use it

"--show-indexed" option not implemented

The --show-indexed option is listed in the help message but never implemented in the code.

Using said option doesn't print anything, leading to think the directory has not been indexed yet, when in reality it could have been.

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.