MCPcopy Index your code
hub / github.com/python/cpython / _access_check

Function _access_check

Lib/shutil.py:1563–1565  ·  view source on GitHub ↗
(fn, mode)

Source from the content-addressed store, hash-verified

1561# Additionally check that `file` is not a directory, as on Windows
1562# directories pass the os.access check.
1563def _access_check(fn, mode):
1564 return (os.path.exists(fn) and os.access(fn, mode)
1565 and not os.path.isdir(fn))
1566
1567
1568def _win_path_needs_curdir(cmd, mode):

Callers 1

whichFunction · 0.85

Calls 3

accessMethod · 0.80
existsMethod · 0.45
isdirMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…