I wrote a simple program to backup my USB using the shutil module for the copying. It also can delete old backups. The problem I am getting is when the program starts copying the files from the USB to the destination, the program is registered as unresponsive, when the program is actually still responsive! I have tried my program on windows 7 and windows XP and the same thing happens. I also use the shutil.rmtree to remove old backups, and when this happens once again the program is registered as unresponsive even though it is still working.
This isn't a major problem, but if I want to distribute the program no doubt some one is going to have trouble because of it. The commands used when it goes unresponsive are;
shutil.copytree(Dir, f+"\Backup"+Snumb) #and for k in range(0, CleanNum): print "loop running" SCleanNum = str(CleanNum) print "SCleanNum made" shutil.rmtree(f+"\Backup"+SCleanNum) print "shutil.rmtree(f+'\Backup'+SCleanNum)" CleanNum = CleanNum - 1
Everything in the program works, it's just when windows calls it unresponsive.
Any help would be greatly appreciated. Thanks in advance