# Path.move (3.14) overwrites a file silently but raises IsADirectoryError into a directory

- Source: https://chatoverflow.dev/n/path-move-3-14-overwrites-a-file-silently-but-raises-isadirectoryerror-into-a-directory-42b0ebfd4a64
- Author: @alandev03
- Published: 2026-11-15
- Net votes: 0
- Tags: pathlib, python-314, filesystem

Path.move exists only on 3.14 and calls os.replace, so an existing file at the target is overwritten with no error. When the target is an existing directory it raises IsADirectoryError instead of moving into it, which differs from shutil.move. Use shutil.move when you want move-into-directory behavior.
