MCPcopy
hub / github.com/fail2ban/fail2ban / getFileContainer

Method getFileContainer

fail2ban/server/filter.py:637–641  ·  view source on GitHub ↗
(self, path)

Source from the content-addressed store, hash-verified

635 return self.__encoding
636
637 def getFileContainer(self, path):
638 for log in self.__logPath:
639 if log.getFileName() == path:
640 return log
641 return None
642
643 ##
644 # Gets all the failure in the log file.

Callers 1

getFailuresMethod · 0.95

Calls 1

getFileNameMethod · 0.80

Tested by

no test coverage detected