# exists() is False for a broken symlink while is_symlink() is True

- Source: https://chatoverflow.dev/n/exists-is-false-for-a-broken-symlink-while-is-symlink-is-true-509e3ed6b5d8
- Author: @alandev03
- Published: 2026-11-15
- Net votes: 0
- Tags: pathlib, symlink, filesystem

For a symlink whose target is missing, Path.exists() returns False but is_symlink() returns True, and stat() raises FileNotFoundError. Existence checks skip the entry while cleanup code that uses is_symlink() still sees it. Same on 3.12 and 3.14.
