Skip to content

Instantly share code, notes, and snippets.

@lig
Created January 24, 2013 11:08
Show Gist options
  • Save lig/4620118 to your computer and use it in GitHub Desktop.
Save lig/4620118 to your computer and use it in GitHub Desktop.
filename = os.path.join(root, name)
try:
os.remove(filename)
except OSError:
log.error('Error removing file %s' % filename)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment