]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix closes issue12577 - clarify shutil.move documentation. Patch suggestion by Catali...
authorSenthil Kumaran <senthil@uthcode.com>
Tue, 19 Jul 2011 00:03:02 +0000 (08:03 +0800)
committerSenthil Kumaran <senthil@uthcode.com>
Tue, 19 Jul 2011 00:03:02 +0000 (08:03 +0800)
Doc/library/shutil.rst

index 1a878d5fd039594906877a242294a3ef5ab95353..1f194a0779ee882c11c7dd080805f4164430fac9 100644 (file)
@@ -161,8 +161,10 @@ Directory and files operations
 
    Recursively move a file or directory to another location.
 
-   If the destination is on the current filesystem, then simply use rename.
-   Otherwise, copy src (with :func:`copy2`) to the dst and then remove src.
+   Uses :func:`os.rename` to perform the move. If it fails, for reasons such as
+   when *src* and *dst* are on different filesystems or in case of windows where
+   rename is not supported when *dst* exists, fallback to copying *src* (with
+   :func:`copy2`) to the *dst* and then remove *src*.
 
 
 .. exception:: Error