By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,772 Members | 904 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,772 IT Pros & Developers. It's quick & easy.

Duplicate Delete Program

P: 4
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
Apr 4 '11 #1
Share this Question
Share on Google+
3 Replies


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

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

P: 20
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.
May 12 '11 #4

Post your reply

Sign in to post your reply or Sign up for a free account.