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 larry
Recipients georg.brandl, hynek, larry, pitrou
Date 2012-06-25.04:13:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1340597602.46.0.0876148548933.issue15177@psf.upfronthosting.co.za>
In-reply-to
Content
Consider: should os.fwalk() support dir_fd?  I think so.  In fact, in retrospect it seems like a bug that os.fwalk *doesn't* already support this.

Georg: is this a feature or a bugfix?

(Wish I'd thought of this Saturday!)

I actually did a little experimenting, and got os.fwalk(fd) to work with very little trouble.  os.walk(fd) is harder because the recursive step appends a string to the existing path, and it really needs to be relative to the fd, and there's no way to pass both of those at once with the current signature.  It's doable but it would require a separate function for the recursive step that accepted a dir_fd anyway.
History
Date User Action Args
2012-06-25 04:13:22larrysetrecipients: + larry, georg.brandl, pitrou, hynek
2012-06-25 04:13:22larrysetmessageid: <1340597602.46.0.0876148548933.issue15177@psf.upfronthosting.co.za>
2012-06-25 04:13:21larrylinkissue15177 messages
2012-06-25 04:13:19larrycreate