Author: Not specified Language: python
Description: Not specified Timestamp: 2013-05-30 22:27:30 +0000
View raw paste Reply
  1. def _bypass_ensure_directory(name, mode=0777):
  2.     # Sandbox-bypassing version of ensure_directory()
  3.     dirname, filename = split(name)
  4.     if dirname and filename and not isdir(dirname):
  5.         _bypass_ensure_directory(dirname)
  6.         mkdir(dirname, mode)
  7.  
View raw paste Reply