Skip to content

Commit 38e6b3c

Browse files
committed
check no longer needed
1 parent dbbb433 commit 38e6b3c

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

fs/move.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,6 @@ def move_file(
6464
with manage_fs(src_fs, writeable=True) as _src_fs:
6565
with manage_fs(dst_fs, writeable=True, create=True) as _dst_fs:
6666
if _src_fs is _dst_fs:
67-
# Exit early if source and destination are the same file
68-
if normpath(src_path) == normpath(dst_path):
69-
return
70-
7167
# Same filesystem, may be optimized
7268
_src_fs.move(
7369
src_path, dst_path, overwrite=True, preserve_time=preserve_time

0 commit comments

Comments
 (0)