def collect(self):
        paths = self.config.get('paths')
	if isinstance(paths, basestring):
            paths = [paths]

	for path in paths:
	    matches = re.search('((.+)\@)?(.+)?', path)
            alias = matches.group(2)
            myfile = matches.group(3)
	    if alias is None:
	    	try:
			filename = os.path.basename(path)
			alias = filename.replace (".","_")
	    	except Exception, e:
			self.log.error('Could not derive bucket name: %s', e)	
			continue
	    try:
		test = open(myfile)
            except __HOLE__:
		self.log.error('Unable to access file: %s', myfile)
	        continue	
	    stats = os.stat(myfile)
	    fileage = (time.time()-stats.st_mtime)
	    self.publish(alias, fileage)
	    alias = None
dataset/ETHPy150Open BrightcoveOS/Diamond/src/collectors/fileage/fileage.py/FileAgeCollector.collect