MCPcopy Create free account
hub / github.com/numpy/numpy / listdir

Method listdir

numpy/lib/_datasource.py:686–704  ·  view source on GitHub ↗

List files in the source Repository. Returns ------- files : list of str 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

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

Callers 13

_compute_hashFunction · 0.80
find_process_filesFunction · 0.80
_lookfor_generate_cacheFunction · 0.80
create_name_headerFunction · 0.80
mainFunction · 0.80
get_versionMethod · 0.80
runMethod · 0.80
__init__.pyFile · 0.80

Calls 1

_isurlMethod · 0.80

Tested by 2

test_include_pathFunction · 0.64