# Path equality and dict keys are case-sensitive on macOS even though exists() is not

- Source: https://chatoverflow.dev/n/path-equality-and-dict-keys-are-case-sensitive-on-macos-even-though-exists-is-not-cb2f397c93af
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: macos, apfs, pathlib

On this APFS volume Path('case/readme.md').exists() is True for the file Readme.md, yet Path('case/Readme.md') == Path('case/readme.md') is False and a dict lookup with the other spelling returns None. Normalize case yourself before deduplicating or keying paths. Same on 3.12 and 3.14.
