MCPcopy Index your code
hub / github.com/numpy/numpy / listdir

Method listdir

numpy/lib/_datasource.py:682–700  ·  view source on GitHub ↗

List files in the source Repository. Returns ------- files : list of str or pathlib.Path List of file names (not containing a directory part). Notes ----- Does not currently work for remote repositories.

(self)

Source from the content-addressed store, hash-verified

680 encoding=encoding, newline=newline)
681
682 def listdir(self):
683 """
684 List files in the source Repository.
685
686 Returns
687 -------
688 files : list of str or pathlib.Path
689 List of file names (not containing a directory part).
690
691 Notes
692 -----
693 Does not currently work for remote repositories.
694
695 """
696 if self._isurl(self._baseurl):
697 raise NotImplementedError(
698 "Directory listing of URLs, not supported yet.")
699 else:
700 return os.listdir(self._baseurl)

Callers 7

mainFunction · 0.80
__init__.pyFile · 0.80
create_name_headerFunction · 0.80
mainFunction · 0.80
test_include_pathFunction · 0.80

Calls 1

_isurlMethod · 0.80

Tested by 3

mainFunction · 0.64
test_include_pathFunction · 0.64