[issue10755] Add posix.fdlistdir

Ross Lagerwall report at bugs.python.org
Wed Dec 22 09:43:48 CET 2010


Ross Lagerwall <rosslagerwall at gmail.com> added the comment:

When maintaining an fd to implement a per thread current directory, you can use it to get a list of files in the directory.

For security reasons, instead of a named path, you can keep an fd to a directory so that if the path is changed externally while performing an operation, the open fd still points to the original directory. This function then allows you to list the contents of that fd. I think this is needed for #4489.

----------

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


More information about the Python-bugs-list mailing list