MCPcopy 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_dirMethod · 0.95

Calls 1

is_resourceMethod · 0.45

Tested by

no test coverage detected