merge from 3.2 - Fix closes issue12577 - clarify shutil.move documentation. Patch suggestion by Catalin Iacob

This commit is contained in:
Senthil Kumaran 2011-07-19 08:05:44 +08:00
parent 711cb58db1
commit 60bf489e8a
1 changed files with 4 additions and 2 deletions

View File

@ -163,8 +163,10 @@ Directory and files operations
Recursively move a file or directory to another location. Recursively move a file or directory to another location.
If the destination is on the current filesystem, then simply use rename. Uses :func:`os.rename` to perform the move. If it fails, for reasons such as
Otherwise, copy src (with :func:`copy2`) to the dst and then remove src. 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*.
.. versionadded:: 2.3 .. versionadded:: 2.3