MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / _access_check

Function _access_check

tools/python-3.11.9-amd64/Lib/shutil.py:1475–1477  ·  view source on GitHub ↗
(fn, mode)

Source from the content-addressed store, hash-verified

1473# Additionally check that `file` is not a directory, as on Windows
1474# directories pass the os.access check.
1475def _access_check(fn, mode):
1476 return (os.path.exists(fn) and os.access(fn, mode)
1477 and not os.path.isdir(fn))
1478
1479
1480def which(cmd, mode=os.F_OK | os.X_OK, path=None):

Callers 1

whichFunction · 0.70

Calls 2

existsMethod · 0.45
isdirMethod · 0.45

Tested by

no test coverage detected