def _bypass_ensure_directory(path, mode=<NUM_LIT>):
if not WRITE_SUPPORT:<EOL><INDENT>raise IOError('<STR_LIT>')<EOL><DEDENT>dirname, filename = split(path)<EOL>if dirname and filename and not isdir(dirname):<EOL><INDENT>_bypass_ensure_directory(dirname)<EOL>mkdir(dirname, mode)<EOL><DEDENT>
Sandbox-bypassing version of ensure_directory()