Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ is_file
Method
is_file
Lib/importlib/resources/_adapters.py:94–95 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
92
return
iter(())
93
94
def
is_file(self):
95
return
self._reader.is_resource(self.name)
96
97
def
is_dir(self):
98
return
not self.is_file()
Callers
1
is_dir
Method · 0.95
Calls
1
is_resource
Method · 0.45
Tested by
no test coverage detected