Пример #1
0
 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]
Пример #2
0
 def _getsize(self):
     st = util.ioretry_stat(lambda: os.statvfs(self.path))
     return st[statvfs.F_BLOCKS] * st[statvfs.F_FRSIZE]
Пример #3
0
 def get_mtime(self, path):
     st = util.ioretry_stat(lambda: os.stat(path))
     return st[stat.ST_MTIME]
Пример #4
0
 def get_mtime(self, path):
     st = util.ioretry_stat(lambda: os.stat(path))
     return st[stat.ST_MTIME]
Пример #5
0
 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]
Пример #6
0
 def _getsize(self):
     st = util.ioretry_stat(lambda: os.statvfs(self.path))
     return st[statvfs.F_BLOCKS] * st[statvfs.F_FRSIZE]