userdata.py 文件源码

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

项目:zielen 作者: lostatc 项目源码 文件源码
def disk_usage(self, memoize=True) -> int:
        """Get the total disk usage of the directory and all of its contents.

        Args:
            memoize: Use cached data if available.

        Returns:
            The total disk usage of the directory in bytes.
        """
        paths = self.scan_paths(memoize=memoize)

        total_size = 0
        for path, stat in paths.items():
            total_size += stat.st_blocks * 512
        return total_size
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号