Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ is_dir
Method
is_dir
Lib/zipfile/_path/__init__.py:395–396 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
393
return
self.__class__(self.root, at)
394
395
def
is_dir(self):
396
return
not self.at or self.at.endswith(
"/"
)
397
398
def
is_file(self):
399
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