Skip to content

Commit 240ce04

Browse files
committed
typo
1 parent 9afa50f commit 240ce04

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/pathlib/_local.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1128,7 +1128,7 @@ def move(self, target):
11281128
"""
11291129
Recursively move this file or directory tree to the given destination.
11301130
"""
1131-
# Use os.rename() if the target is os.PathLike and on the same FS.
1131+
# Use os.replace() if the target is os.PathLike and on the same FS.
11321132
try:
11331133
target_str = os.fspath(target)
11341134
except TypeError:
@@ -1138,7 +1138,7 @@ def move(self, target):
11381138
target = self.with_segments(target_str)
11391139
target.copy._ensure_different_file(self)
11401140
try:
1141-
os.rename(self, target_str)
1141+
os.replace(self, target_str)
11421142
return target
11431143
except OSError as err:
11441144
if err.errno != EXDEV:

0 commit comments

Comments
 (0)