def collect(self):
        for item in glob.glob(os.path.join(self.config['ksm_path'], "*")):
            if os.access(item, os.R_OK):
                filehandle = open(item)
                try:
                    self.publish(os.path.basename(item),
                                 float(filehandle.readline().rstrip()))
                except __HOLE__:
                    pass
                filehandle.close()
dataset/ETHPy150Open BrightcoveOS/Diamond/src/collectors/ksm/ksm.py/KSMCollector.collect