Ross Lagerwall <rosslagerw...@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue10755>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to