Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e752dd commit ae4a78bCopy full SHA for ae4a78b
1 file changed
Doc/library/shutil.rst
@@ -161,8 +161,10 @@ Directory and files operations
161
162
Recursively move a file or directory to another location.
163
164
- If the destination is on the current filesystem, then simply use rename.
165
- 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
166
+ rename is not supported when *dst* exists, fallback to copying *src* (with
167
+ :func:`copy2`) to the *dst* and then remove *src*.
168
169
170
.. exception:: Error
0 commit comments