empty_volume_cache.py 文件源码

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

项目:remoteControlPPT 作者: htwenning 项目源码 文件源码
def GetSpaceUsed(self, callback):
        total = [0] # See _WalkCallback above
        try:
            for d in self._GetDirectories():
                os.path.walk(d, self._WalkCallback, (callback, total))
                print "After looking in", d, "we have", total[0], "bytes"
        except pythoncom.error, (hr, msg, exc, arg):
            # This will be raised by the callback when the user selects 'cancel'.
            if hr != winerror.E_ABORT:
                raise # that's the documented error code!
            print "User cancelled the operation"
        return total[0]
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号