Remove openat support

This commit is contained in:
Antoine Pitrou 2013-10-23 19:49:13 +02:00
parent 2f7a3f3957
commit 9d74f7717b
1 changed files with 0 additions and 19 deletions

View File

@ -658,25 +658,6 @@ Several common filesystem operations are provided as methods: ``touch()``,
provided, for example some of the functionality of the shutil module.
Experimental openat() support
-----------------------------
On compatible POSIX systems, the concrete PosixPath class can take advantage
of \*at() functions (`openat()`_ and friends), and manages the bookkeeping of
open file descriptors as necessary. Support is enabled by passing the
*use_openat* argument to the constructor::
>>> p = Path(".", use_openat=True)
Then all paths constructed by navigating this path (either by iteration or
indexing) will also use the openat() family of functions. The point of using
these functions is to avoid race conditions whereby a given directory is
silently replaced with another (often a symbolic link to a sensitive system
location) between two accesses.
.. _`openat()`: http://pubs.opengroup.org/onlinepubs/9699919799/functions/open.html
Copyright
=========