

def disk_list(self):
    file_set = set()
    if os.path.isdir(self.logpath):
        for f in os.listdir(self.logpath):
            full_path = os.path.join(self.logpath, f)
            stat_info = os.stat(full_path)
            size = sizeof_fmt(stat_info.st_size)
            mtime = datetime.datetime.utcfromtimestamp(stat_info.st_mtime).isoformat()
            if os.path.isdir(full_path):
                f = ((f + '/') if (f[(- 1)] != '/') else f)
            file_set.add((os.path.join('/', self.logname, f), f, mtime, size))
    return file_set

dataset/ETHPy150Open openstack-infra/os-loganalyze/os_loganalyze/generator.py IndexIterableBuffer.disk_list/original