(path)
Sandbox-bypassing version of ensure_directory()
Sandbox-bypassing version of ensure_directory()
Sandbox - bypassing version of ensure_directory ()
def _bypass_ensure_directory(path):
    """Sandbox-bypassing version of ensure_directory()"""
    if not WRITE_SUPPORT:
        raise IOError('"os.mkdir" not supported on this platform.')
    dirname, filename = split(path)
    if dirname and filename and not isdir(dirname):
        _bypass_ensure_directory(dirname)
        try:
            mkdir(dirname, 0o755)
        except FileExistsError:
            pass
def _bypass_ensure_directory ( path ) : if not WRITE_SUPPORT : raise IOError ( '"os.mkdir" not supported on this platform.' ) dirname , filename = split ( path ) if dirname and filename and not isdir ( dirname ) : _bypass_ensure_directory ( dirname ) try : mkdir ( dirname , 0o755 ) except FileExistsError : pass