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)
| 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) |