class_docstr: Repository(baseurl, destpath='.')
  
  A data repository where multiple DataSource's share a base
  URL/directory.
  
  `Repository` extends `DataSource` by prepending a base URL (or
  directory) to all the files it handles. Use `Repository` when you will
  be working with multiple files from one base URL.  Initialize
  `Repository` with the base URL, then refer to each file by its filename
  only.
  
  Parameters
  ----------
  baseurl : str
      Path to the local directory or remote location that contains the
      data files.
  destpath : str or None, optional
      Path to the directory where the source file gets downloaded to for
      use.  If `destpath` is None, a temporary directory will be created.
      The default path is the current directory.
  
  Examples
  --------
  To analyze all files in the repository, do something like this
  (note: this is not self-contained code)::
  
      >>> repos = np.lib._datasource.Repository('/home/user/data/dir/')
      >>> for filename in filelist:
      ...     fp = repos.open(filename)
      ...     fp.analyze()
      ...     fp.close()
  
  Similarly you could use a URL for a repository::
  
      >>> repos = np.lib._datasource.Repository('http://www.xyz.edu/data')
class_docstr_tok: ["Repository","(","baseurl",",","destpath=","'",".","'",")","A","data","repository","where","multiple","DataSource","'s","share","a","base","URL\/directory",".","`","Repository","`","extends","`","DataSource","`","by","prepending","a","base","URL","(","or","directory",")","to","all","the","files","it","handles",".","Use","`","Repository","`","when","you","will","be","working","with","multiple","files","from","one","base","URL",".","Initialize","`","Repository","`","with","the","base","URL",",","then","refer","to","each","file","by","its","filename","only",".","Parameters","--","--","--","--","--","baseurl",":","str","Path","to","the","local","directory","or","remote","location","that","contains","the","data","files",".","destpath",":","str","or","None",",","optional","Path","to","the","directory","where","the","source","file","gets","downloaded","to","for","use",".","If","`","destpath","`","is","None",",","a","temporary","directory","will","be","created",".","The","default","path","is","the","current","directory",".","Examples","--","--","--","--","To","analyze","all","files","in","the","repository",",","do","something","like","this","(","note",":","this","is","not","self-contained","code",")",":",":",">",">",">","repos","=","np.lib._datasource.Repository","(","'\/home\/user\/data\/dir\/","'",")",">",">",">","for","filename","in","filelist",":","...","fp","=","repos.open","(","filename",")","...","fp.analyze","(",")","...","fp.close","(",")","Similarly","you","could","use","a","URL","for","a","repository",":",":",">",">",">","repos","=","np.lib._datasource.Repository","(","'http",":","\/\/www.xyz.edu\/data","'",")"]
docstr: 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.
docstr_tok: ["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","."]
code: def listdir(self):
      """
      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.
  
      """
      if self._isurl(self._baseurl):
          raise NotImplementedError(
              "Directory listing of URLs, not supported yet."
          )
      else:
          return os.listdir(self._baseurl)
  
imports: import os
  import io
  from .._utils import set_module
label_desc: Use image node_id 8 for calling the Repository obj's underlying member method code with example usage: obj.listdir() and returns: os