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