MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / get

Method get

pager_lib/getmac/getmac.py:711–717  ·  view source on GitHub ↗
(self, arg)

Source from the content-addressed store, hash-verified

709 return check_path(self._path)
710
711 def get(self, arg): # type: (str) -> Optional[str]
712 data = _read_file(self._path + arg + "/address")
713
714 # NOTE: if "/sys/class/net/" exists, but interface file doesn't,
715 # then that means the interface doesn't exist
716 # Sometimes this can be empty or a single newline character
717 return None if data is not None and len(data) < 17 else data
718
719
720class UuidLanscan(Method):

Callers

nothing calls this directly

Calls 1

_read_fileFunction · 0.85

Tested by

no test coverage detected