filesystem.py 文件源码

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

项目:ppapi 作者: PPAPI 项目源码 文件源码
def to_os_path(self, _path, _case, _run_id):
        path_out = self.run_path(_case, str(_run_id))
        _path = str(_path).split('/')
        file_out = None
        counter = 1
        for res in _path:
            if counter < len(_path):
                res = secure_filename(res)
                path_out = os.path.join(path_out, res)
            if counter == len(_path):
                file_out = res
            counter += 1
        return path_out, file_out

    ## Function to read file content
    #  @param _file_name file name <string>
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号