I haven't tested this, but i maybe think it works? import shutil try: copy("your_file.txt", "your_subfolder") print "Done!" except: print "Failed!"