MCPcopy Index your code
hub / github.com/python/cpython / _is_dir

Function _is_dir

Lib/zipimport.py:255–261  ·  view source on GitHub ↗
(self, path)

Source from the content-addressed store, hash-verified

253
254# Does this path represent a directory?
255def _is_dir(self, path):
256 # See if this is a "directory". If so, it's eligible to be part
257 # of a namespace package. We test by seeing if the name, with an
258 # appended path separator, exists.
259 dirpath = path + path_sep
260 # If dirpath is present in self._get_files(), we have a directory.
261 return dirpath in self._get_files()
262
263# Return some information about a module.
264def _get_module_info(self, fullname):

Callers 1

find_specMethod · 0.85

Calls 1

_get_filesMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…