[issue19767] pathlib: iterfiles() and iterdirs()

Antoine Pitrou report at bugs.python.org
Sun May 11 00:55:26 CEST 2014


Antoine Pitrou added the comment:

Here is a patch with the proposed API. The API for convenience:

    def files(self, include_symlinks=True):
        """Iterate over the regular files in this directory.
        """

    def subdirs(self, include_symlinks=True):
        """Iterate over the subdirectories in this directory.
        """

----------
Added file: http://bugs.python.org/file35210/path_subdirs_files.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19767>
_______________________________________


More information about the Python-bugs-list mailing list