global_functions.py 文件源码

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

项目:TACTIC-Handler 作者: listyque 项目源码 文件源码
def get_st_size(file_path):
    if type(file_path) == list:
        total_size = 0
        for fl in file_path:
            if os.path.exists(fl):
                total_size += os.stat(fl)[ST_SIZE]
        return total_size
    else:
        return os.stat(file_path)[ST_SIZE]
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号