Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ isdir
Method
isdir
Lib/test/test_getpath.py:1001–1004 ·
view source on GitHub ↗
(self, path)
Source
from the content-addressed store, hash-verified
999
return
path[1:3] ==
":\\"
1000
1001
def
isdir(self, path):
1002
if
verbose:
1003
print(
"Check if"
, path,
"is a dir"
)
1004
return
path.casefold() in self._dirs
1005
1006
def
isfile(self, path):
1007
if
verbose:
Callers
nothing calls this directly
Calls
1
casefold
Method · 0.80
Tested by
no test coverage detected