summaryrefslogtreecommitdiffstats
path: root/Doc/lib
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2002-10-07 13:23:24 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2002-10-07 13:23:24 (GMT)
commite9ce0b0fea16453cb8d75ecac02669998cc7ff36 (patch)
tree2c2949cb0236b4971ebded38bc5bb5a5d8dd9d43 /Doc/lib
parent114619e1ed7537d4e741516340eea40e19dcea2c (diff)
downloadcpython-e9ce0b0fea16453cb8d75ecac02669998cc7ff36.zip
cpython-e9ce0b0fea16453cb8d75ecac02669998cc7ff36.tar.gz
cpython-e9ce0b0fea16453cb8d75ecac02669998cc7ff36.tar.bz2
Patch #448038: Add move(). Report errors from copytree as in shutil.Error.
Diffstat (limited to 'Doc/lib')
-rw-r--r--Doc/lib/libshutil.tex16
1 files changed, 16 insertions, 0 deletions
diff --git a/Doc/lib/libshutil.tex b/Doc/lib/libshutil.tex
index f41d4eb..434804b 100644
--- a/Doc/lib/libshutil.tex
+++ b/Doc/lib/libshutil.tex
@@ -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}}