changeset: 71414:62048a6eb43c branch: 3.2 parent: 71412:a01ba3c32a4b user: Senthil Kumaran date: Tue Jul 19 08:03:02 2011 +0800 files: Doc/library/shutil.rst description: Fix closes issue12577 - clarify shutil.move documentation. Patch suggestion by Catalin Iacob diff -r a01ba3c32a4b -r 62048a6eb43c Doc/library/shutil.rst --- a/Doc/library/shutil.rst Tue Jul 19 01:26:58 2011 +0200 +++ b/Doc/library/shutil.rst Tue Jul 19 08:03:02 2011 +0800 @@ -161,8 +161,10 @@ 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

AltStyle によって変換されたページ (->オリジナル) /