Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ is_dir
Method
is_dir
Lib/zipfile/_path/__init__.py:392–393 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
390
return
self.__class__(self.root, at)
391
392
def
is_dir(self):
393
return
not self.at or self.at.endswith(
"/"
)
394
395
def
is_file(self):
396
return
self.exists() and not self.is_dir()
Callers
3
open
Method · 0.95
is_file
Method · 0.95
iterdir
Method · 0.95
Calls
1
endswith
Method · 0.45
Tested by
no test coverage detected