Duplicate Delete Program

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nick john
    New Member
    • Mar 2011
    • 4

    Duplicate Delete Program

    I am new to python and would appreciate if someone could point me in the right direction. I want to create a program that allows the user to enter a directory where some files are located and give them the option to delete any files with the same file name. It would be useful for music. I have a lot of music and in many case a couple files for the same song. I figured the best way to write this would be by reading the name of each file and writing it to a text file. And before each file is written to the txt file you would have the program check if the file already exist and if it does then delete it. What do you think?
    Thanks,
    Nick
  • Bishop Manu
    New Member
    • Mar 2011
    • 5

    #2
    hi,that's cool had same ideal which i never implemented :) i'll try it

    Comment

    • Bishop Manu
      New Member
      • Mar 2011
      • 5

      #3
      hi,that's cool had same ideal which i never implemented :) i'll try it

      Comment

      • Ephexeve
        New Member
        • May 2011
        • 20

        #4
        It's a good idea, but a little advance for a beginner, but hey, you can always try, right? Use the module os, there you can do what you are willing for.

        Comment

        Working...