Patch #448038: Add move(). Report errors from copytree as in shutil.Error.

This commit is contained in:
Martin v. Löwis 2002-10-07 13:23:24 +00:00
parent 114619e1ed
commit e9ce0b0fea
3 changed files with 49 additions and 2 deletions

View file

@ -93,6 +93,22 @@ file type and creator codes will not be correct.
not be caught.
\end{funcdesc}
\begin{funcdesc}{move}{src, dst}
Recursively move a file or directory to another location.
If the destination is on our current filesystem, then simply use
rename. Otherwise, copy src to the dst and then remove src.
\versionadded{2.3}
\end{funcdesc}
\begin{excdesc}{Error}
This exception collects exceptions that raised during a mult-file
operation. For \function{copytree}, the exception argument is a
list of 3-tuples (\var{srcname}, \var{dstname}, \var{exception}).
\versionadded{2.3}
\end{excdesc}
\subsection{Example \label{shutil-example}}