Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ isdir
Method
isdir
Lib/test/test_pathlib/support/zip_path.py:75–77 ·
view source on GitHub ↗
(self, p)
Source
from the content-addressed store, hash-verified
73
readlink = readtext
74
75
def
isdir(self, p):
76
path_str = str(p) +
"/"
77
return
path_str in p.zip_file.NameToInfo
78
79
def
isfile(self, p):
80
info = p.zip_file.NameToInfo.get(str(p))
Callers
5
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
Calls
1
str
Function · 0.85
Tested by
4
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