GithubHelp home page GithubHelp logo

phodupe's Introduction

phodupe

What is it

A simple little python script that finds duplicate file names (without the extension) across multiple directories (and recursively if set) and gives the user the option to delete them.

Why

I used this as an opportunity to begin learning python. It was created for a very very specific scenario and might not be too useful to anyone else.

How do to install / run

(There are probably better ways to run this, but i'm a python noob)

  • Navigate to the folder you downloaded the git project to
    • cd \development\git\Phodupe\
  • Install the python script
    • python .\setup.py install
  • Run the script by passing a source directory and any number of "delete" directories
    • Deletes dupes from OG Phone Walls and 2Delete:
      • python phodupe "C:\Users\NYPD\Desktop\OG Phone Walls" "C:\Users\NYPD\Desktop\2Delete"
    • Deletes dupes from OG Phone Walls, 2Delete , and AlsoDelete:
      • python phodupe "C:\Users\NYPD\Desktop\OG Phone Walls" "C:\Users\NYPD\Desktop\2Delete" "C:\Users\NYPD\Desktop\AlsoDelete"

phodupe's People

Contributors

nypd avatar

Watchers

 avatar  avatar

phodupe's Issues

Create a GUI

Easy to choose multiple directories and stuff. Much faster than command line typing everything

2 directories found vs 3 when choosing exact same file name

PS C:\development\git\phodupe> python phodupe "\\freenas\HGST 4TB\Pictures\Phone Walls\2Delete" "\\freenas\HGST 4TB\Pictures\OG Phone Walls" "\\freenas\HGST 4TB\Pictures\Post-Ratio\9x19"
Would you like to recursivley search all the destination directories? 'y' or 'n'
n
Must all directories have the same exact file name? 'y' or 'n'
n
92 duplicate file names found across 2 directories. Enter 'y' to delete or 'n' to abort:
n
No files deleted, aborting...
PS C:\development\git\phodupe> python phodupe "\\freenas\HGST 4TB\Pictures\Phone Walls\2Delete" "\\freenas\HGST 4TB\Pictures\OG Phone Walls" "\\freenas\HGST 4TB\Pictures\Post-Ratio\9x19"
Would you like to recursivley search all the destination directories? 'y' or 'n'
n
Must all directories have the same exact file name? 'y' or 'n'
y
92 duplicate file names found across 3 directories. Enter 'y' to delete or 'n' to abort:
y
Files deleted, exiting...
PS C:\development\git\phodupe>

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.