Skip to content

Instantly share code, notes, and snippets.

@dakrone
Created April 15, 2010 19:34
Show Gist options
  • Select an option

  • Save dakrone/367539 to your computer and use it in GitHub Desktop.

Select an option

Save dakrone/367539 to your computer and use it in GitHub Desktop.
#!/usr/bin/python
import sys
import shutil
import os
import os.path
if os.path.exists("$(sourceFolder)"):
try:
shutil.rmtree("$(sourceFolder)")
except Exception:
print "Exception during recursive delete."
pass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment