def METHOD_NAME(path):
    """Make directory recursively considering sudo permissions.
    'Path' should not end in a delimiter."""
    logger.debug('makedirs(%s)', path)
    if os.path.lexists(path):
        return
    parentdir = os.path.split(path)[0]
    if not os.path.lexists(parentdir):
        METHOD_NAME(parentdir)
    os.mkdir(path, 0o700)
    if sudo_mode():
        chownself(path)