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 17575ba commit bdfc774Copy full SHA for bdfc774
fs/move.py
@@ -64,6 +64,9 @@ def move_file(
64
with manage_fs(src_fs, writeable=True) as _src_fs:
65
with manage_fs(dst_fs, writeable=True, create=True) as _dst_fs:
66
if _src_fs is _dst_fs:
67
+ if src_path == dst_path:
68
+ return
69
+
70
# Same filesystem, may be optimized
71
_src_fs.move(
72
src_path, dst_path, overwrite=True, preserve_time=preserve_time
0 commit comments