]> granicus.if.org Git - python/commitdiff
added a note on shutil.copytree improvements
authorTarek Ziadé <ziade.tarek@gmail.com>
Tue, 20 Apr 2010 09:13:23 +0000 (09:13 +0000)
committerTarek Ziadé <ziade.tarek@gmail.com>
Tue, 20 Apr 2010 09:13:23 +0000 (09:13 +0000)
Doc/whatsnew/3.2.rst

index a8b2fe4a733a6d7a996bd4b1f7cc0eb33ad4c975..1a7d08016d26fe9fbac62fc2eb5d997ce97d5d52 100644 (file)
@@ -85,6 +85,17 @@ New, Improved, and Deprecated Modules
   (Contributed by Georg Brandl and Mattias Brändström;
   `appspot issue 53094 <http://codereview.appspot.com/53094>`_.)
 
+* The :func:`shutil.copytree` function has two new options
+
+  * ignore_dangling_symlinks: when symlinks=false (meaning that the function
+    copy the file pointed by the symlink, not the symlink itself)
+    this option will silent the error thrown if the file doesn't exists.
+
+  * copy_function: a callable that will be used to copy files.
+    :func:`shutil.copy2` is used by default.
+
+  (Contributed by Tarek Ziade)
+
 Multi-threading
 ===============