def makedir(path, ignored=None, uid=-1, gid=-1):
    ignored = ignored or []
    try:
        os.makedirs(path)
    except __HOLE__ as error:
        if error.errno in ignored:
            pass
        else:
            # re-raise the original exception
            raise
    else:
        os.chown(path, uid, gid);
dataset/ETHPy150Open ceph/ceph-deploy/ceph_deploy/hosts/remotes.py/makedir