Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ isdir
Method
isdir
Lib/test/test_pathlib/support/zip_path.py:76–78 ·
view source on GitHub ↗
(self, p)
Source
from the content-addressed store, hash-verified
74
readlink = readtext
75
76
def
isdir(self, p):
77
path_str = vfspath(p) +
"/"
78
return
path_str in p.zip_file.NameToInfo
79
80
def
isfile(self, p):
81
info = p.zip_file.NameToInfo.get(vfspath(p))
Callers
6
test_copy_dir
Method · 0.45
test_copy_dir_follow_symlinks_true
Method · 0.45
test_copy_dir_follow_symlinks_false
Method · 0.45
test_mkdir
Method · 0.45
is_dir
Method · 0.45
test_export_creates_output_directory
Method · 0.45
Calls
1
vfspath
Function · 0.90
Tested by
5
test_copy_dir
Method · 0.36
test_copy_dir_follow_symlinks_true
Method · 0.36
test_copy_dir_follow_symlinks_false
Method · 0.36
test_mkdir
Method · 0.36
test_export_creates_output_directory
Method · 0.36