Message163886
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. |
|
Date |
User |
Action |
Args |
2012-06-25 04:13:22 | larry | set | recipients:
+ larry, georg.brandl, pitrou, hynek |
2012-06-25 04:13:22 | larry | set | messageid: <1340597602.46.0.0876148548933.issue15177@psf.upfronthosting.co.za> |
2012-06-25 04:13:21 | larry | link | issue15177 messages |
2012-06-25 04:13:19 | larry | create | |
|