[Python-checkins] python/dist/src/Doc/lib libshutil.tex,1.15,1.16
jlgijsbers at users.sourceforge.net
jlgijsbers at users.sourceforge.net
Sat Jan 8 13:31:31 CET 2005
Update of /cvsroot/python/python/dist/src/Doc/lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv819/Doc/lib
Modified Files:
libshutil.tex
Log Message:
Patch #1094015:
* Use os.makedirs() instead os.mkdir(). (bug #975763)
* Use copystat() to copy directory bits (bug #1048878)
Index: libshutil.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libshutil.tex,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- libshutil.tex 14 Jul 2004 00:48:58 -0000 1.15
+++ libshutil.tex 8 Jan 2005 12:31:28 -0000 1.16
@@ -67,8 +67,10 @@
\begin{funcdesc}{copytree}{src, dst\optional{, symlinks}}
Recursively copy an entire directory tree rooted at \var{src}. The
destination directory, named by \var{dst}, must not already exist;
- it will be created. Individual files are copied using
- \function{copy2()}. If \var{symlinks} is true, symbolic links in
+ it will be created as well as missing parent directories.
+ Permissions and times of directories are copied with \function{copystat()},
+ individual files are copied using \function{copy2()}.
+ If \var{symlinks} is true, symbolic links in
the source tree are represented as symbolic links in the new tree;
if false or omitted, the contents of the linked files are copied to
the new tree. If exception(s) occur, an Error is raised
@@ -76,8 +78,14 @@
The source code for this should be considered an example rather than
a tool.
-\versionchanged[Error is raised if any exceptions occur during copying,
-rather than printing a message]{2.3}
+
+ \versionchanged[Error is raised if any exceptions occur during copying,
+ rather than printing a message]{2.3}
+
+ \versionchanged[Create intermediate directories needed to create \var{dst},
+ rather than raising an error. Copy permissions and times of directories using
+ \function{copystat()}]{2.5}
+
\end{funcdesc}
\begin{funcdesc}{rmtree}{path\optional{, ignore_errors\optional{, onerror}}}
More information about the Python-checkins
mailing list