MCPcopy Index your code
hub / github.com/RustPython/RustPython / _is_dir

Function _is_dir

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

Source from the content-addressed store, hash-verified

304
305# Does this path represent a directory?
306def _is_dir(self, path):
307 # See if this is a "directory". If so, it's eligible to be part
308 # of a namespace package. We test by seeing if the name, with an
309 # appended path separator, exists.
310 dirpath = path + path_sep
311 # If dirpath is present in self._get_files(), we have a directory.
312 return dirpath in self._get_files()
313
314# Return some information about a module.
315def _get_module_info(self, fullname):

Callers 1

find_specMethod · 0.85

Calls 1

_get_filesMethod · 0.80

Tested by

no test coverage detected