mirror of https://github.com/python/cpython
dir() method description revised based on comments from Greg Stein.
This commit is contained in:
parent
17a8b5d473
commit
1508970a47
|
@ -208,12 +208,13 @@ non-standard options to the \samp{NLST} command.
|
||||||
\end{methoddesc}
|
\end{methoddesc}
|
||||||
|
|
||||||
\begin{methoddesc}{dir}{argument\optional{, \ldots}}
|
\begin{methoddesc}{dir}{argument\optional{, \ldots}}
|
||||||
Return a directory listing as returned by the \samp{LIST} command, as
|
Produce a directory listing as returned by the \samp{LIST} command,
|
||||||
a list of lines. The optional \var{argument} is a directory to list
|
printing it to standard output. The optional \var{argument} is a
|
||||||
(default is the current server directory). Multiple arguments can be
|
directory to list (default is the current server directory). Multiple
|
||||||
used to pass non-standard options to the \samp{LIST} command. If the
|
arguments can be used to pass non-standard options to the \samp{LIST}
|
||||||
last argument is a function, it is used as a \var{callback} function
|
command. If the last argument is a function, it is used as a
|
||||||
as for \method{retrlines()}.
|
\var{callback} function as for \method{retrlines()}; the default
|
||||||
|
prints to \code{sys.stdout}. This method returns \code{None}.
|
||||||
\end{methoddesc}
|
\end{methoddesc}
|
||||||
|
|
||||||
\begin{methoddesc}{rename}{fromname, toname}
|
\begin{methoddesc}{rename}{fromname, toname}
|
||||||
|
|
Loading…
Reference in New Issue