()
| 34 | numofiles += 1 |
| 35 | |
| 36 | def movefiles(): |
| 37 | print '.',##just lets the user know it hasn't crashed for large batches |
| 38 | for x in os.listdir(os.getcwd()): |
| 39 | if os.path.isdir(x): |
| 40 | os.chdir(x) |
| 41 | movefiles() |
| 42 | os.chdir('..') |
| 43 | if os.path.isfile(x) and os.getcwd() != rootdir: |
| 44 | shutil.move(x, '..') |
| 45 | |
| 46 | def deletedirs(): |
| 47 | global numofdirs |