Advertisement
rfmonk

shutil_rmtree.py

Jan 28th, 2014
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.20 KB | None | 0 0
  1. #!/usr/bin/env python
  2. #
  3.  
  4.  
  5. from shutil import *
  6. from commands import *
  7.  
  8. print 'BEFORE:'
  9. print getoutput('ls -rlast /tmp/example')
  10. rmtree('/tmp/example')
  11. print 'AFTER:'
  12. print getoutput('ls -rlast /tmp/example')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement