summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorJohannes Gijsbers <jlg@dds.nl>2005-01-08 12:31:29 (GMT)
committerJohannes Gijsbers <jlg@dds.nl>2005-01-08 12:31:29 (GMT)
commite4172eadf3fb9c1de591305ad4ca4ce3e252abd3 (patch)
tree39ef31310e9baeda724de10e619e4aa7b7d9d776 /Doc
parent711906e0c26c010600221da50aa930008b8a9447 (diff)
downloadcpython-e4172eadf3fb9c1de591305ad4ca4ce3e252abd3.zip
cpython-e4172eadf3fb9c1de591305ad4ca4ce3e252abd3.tar.gz
cpython-e4172eadf3fb9c1de591305ad4ca4ce3e252abd3.tar.bz2
Patch #1094015:
* Use os.makedirs() instead os.mkdir(). (bug #975763) * Use copystat() to copy directory bits (bug #1048878)
Diffstat (limited to 'Doc')
-rw-r--r--Doc/lib/libshutil.tex16
1 files changed, 12 insertions, 4 deletions
diff --git a/Doc/lib/libshutil.tex b/Doc/lib/libshutil.tex
index 5dd1b6c..a217150 100644
--- a/Doc/lib/libshutil.tex
+++ b/Doc/lib/libshutil.tex
@@ -67,8 +67,10 @@ file type and creator codes will not be correct.
\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 @@ file type and creator codes will not be correct.
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}}}