This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author jonash
Recipients jonash
Date 2013-11-25.10:25:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1385375147.52.0.820545347485.issue19767@psf.upfronthosting.co.za>
In-reply-to
Content
From my personal experience, listing all real files and all subdirectories in a directory is a very common use case.

Here's a patch that adds the `iterfiles()` and `iterdirs()` methods as a shortcut for `[f for f in p.iterdir() if f.is_dir/file()]` .
History
Date User Action Args
2013-11-25 10:25:47jonashsetrecipients: + jonash
2013-11-25 10:25:47jonashsetmessageid: <1385375147.52.0.820545347485.issue19767@psf.upfronthosting.co.za>
2013-11-25 10:25:47jonashlinkissue19767 messages
2013-11-25 10:25:47jonashcreate