Commit f5e6325d authored by Fred Drake's avatar Fred Drake

Add docs for os.fchdir().

parent deb2f333
...@@ -101,6 +101,7 @@ use a modified environment. ...@@ -101,6 +101,7 @@ use a modified environment.
\end{datadesc} \end{datadesc}
\begin{funcdescni}{chdir}{path} \begin{funcdescni}{chdir}{path}
\funclineni{fchdir}{}
\funclineni{getcwd}{} \funclineni{getcwd}{}
These functions are described in ``Files and Directories'' (section These functions are described in ``Files and Directories'' (section
\ref{os-file-dir}). \ref{os-file-dir}).
...@@ -590,6 +591,14 @@ Change the current working directory to \var{path}. ...@@ -590,6 +591,14 @@ Change the current working directory to \var{path}.
Availability: Macintosh, \UNIX, Windows. Availability: Macintosh, \UNIX, Windows.
\end{funcdesc} \end{funcdesc}
\begin{funcdesc}{fchdir}{fd}
Change the current working directory to the directory represented by
the file descriptor \var{fd}. The descriptor must refer to an opened
directory, not an open file.
Availability: \UNIX.
\versionadded{2.3}
\end{funcdesc}
\begin{funcdesc}{getcwd}{} \begin{funcdesc}{getcwd}{}
Return a string representing the current working directory. Return a string representing the current working directory.
Availability: Macintosh, \UNIX, Windows. Availability: Macintosh, \UNIX, Windows.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment