Commits

John Mulligan committed 96fb13b

fix incorrect notes in docs

As of 87e7f6c562f3 we duplicate the fd automatically so note
that instead of the previous note to dup it yourself.

Comments (0)

Files changed (1)

doc/source/fsnix-fslib.rst

     *flags* argument.
     
     .. note::
-       This function will "consume" the file descriptor passed to it.
-       If you need to re-use the descriptor later, create a duplicate
-       via :func:`os.dup` first.
+       While iterating the process will use an extra file
+       descriptor, because the file descriptor provided is 
+       duplicated automatically.
 
 
 .. function:: fdlistdir(dirfd[, flags])
     *flags* argument.
 
     .. note::
-       This function will "consume" the file descriptor passed to it.
-       If you need to re-use the descriptor later, create a duplicate
-       via :func:`os.dup` first.
+       While the function is executing the process will use an extra file
+       descriptor, because the file descriptor provided is 
+       duplicated automatically.
 
 
 .. function:: fstatat(dirfd, pathname[, flags])