Advertisement
Guest User

Movie Cleanup

a guest
Jan 25th, 2012
411
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.40 KB | None | 0 0
  1. import os
  2. import shutil
  3.  
  4. for root, dirs, files in os.walk(eg.globals.moviezip):
  5.     for f in files:
  6.         os.remove(os.path.join(root, f))
  7.     for d in dirs:
  8.         shutil.rmtree(os.path.join(root, d))
  9.            
  10. for root, dirs, files in os.walk(eg.globals.movieproc):
  11.     for f in files:
  12.         os.remove(os.path.join(root, f))
  13.     for d in dirs:
  14.         shutil.rmtree(os.path.join(root, d))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement