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

Function check_path

pager_lib/getmac/getmac.py:175–177  ·  view source on GitHub ↗
(filepath)

Source from the content-addressed store, hash-verified

173
174
175def check_path(filepath):
176 # type: (str) -> bool
177 return os.path.exists(filepath) and os.access(filepath, os.R_OK)
178
179
180def _clean_mac(mac):

Callers 3

testMethod · 0.85
testMethod · 0.85
testMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected