config.py 文件源码

python
阅读 27 收藏 0 点赞 0 评论 0

项目:gilt 作者: metacloud 项目源码 文件源码
def _makedirs(path):
    """
    Create a base directory of the provided path and return None.

    :param path: A string containing a path to be deconstructed and basedir
     created.
    :return: None
    """
    dirname, _ = os.path.split(path)
    try:
        os.makedirs(dirname)
    except OSError as exc:
        if exc.errno == errno.EEXIST:
            pass
        else:
            raise
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号