def _getutilisation(self): st = util.ioretry_stat(lambda: os.statvfs(self.path)) return (st[statvfs.F_BLOCKS] - st[statvfs.F_BAVAIL]) * \ st[statvfs.F_FRSIZE]
def _getsize(self): st = util.ioretry_stat(lambda: os.statvfs(self.path)) return st[statvfs.F_BLOCKS] * st[statvfs.F_FRSIZE]
def get_mtime(self, path): st = util.ioretry_stat(lambda: os.stat(path)) return st[stat.ST_MTIME]