platformdirs breaking changes
Updated December 4, 2026
On this page
Latest version 4.14.9, released November 27, 2026. Source repository
Packages on PyPI run on Python. Python end of life dates.
platformdirs 4.14.8 breaking changes
- Signature changed
platformdirs.PlatformDirs
Was PlatformDirs; now class Unix(XDGMixin, _UnixDefaults). pypi.org
platformdirs 4.14.6 breaking changes
- Signature changed
platformdirs.user_desktop_dir
Was def user_desktop_dir(*, ensure_exists: bool = False) -> str; now def user_desktop_dir(*, ensure_exists: bool = False, use_site_for_root: bool = False) -> str. pypi.org - Signature changed
platformdirs.user_desktop_path
Was def user_desktop_path(*, ensure_exists: bool = False) -> Path; now def user_desktop_path(*, ensure_exists: bool = False, use_site_for_root: bool = False) -> Path. pypi.org - Signature changed
platformdirs.user_documents_dir
Was def user_documents_dir(*, ensure_exists: bool = False) -> str; now def user_documents_dir(*, ensure_exists: bool = False, use_site_for_root: bool = False) -> str. pypi.org - Signature changed
platformdirs.user_documents_path
Was def user_documents_path(*, ensure_exists: bool = False) -> Path; now def user_documents_path(*, ensure_exists: bool = False, use_site_for_root: bool = False) -> Path. pypi.org - Signature changed
platformdirs.user_downloads_dir
Was def user_downloads_dir(*, ensure_exists: bool = False) -> str; now def user_downloads_dir(*, ensure_exists: bool = False, use_site_for_root: bool = False) -> str. pypi.org - Signature changed
platformdirs.user_downloads_path
Was def user_downloads_path(*, ensure_exists: bool = False) -> Path; now def user_downloads_path(*, ensure_exists: bool = False, use_site_for_root: bool = False) -> Path. pypi.org - Signature changed
platformdirs.user_fonts_dir
Was def user_fonts_dir() -> str; now def user_fonts_dir(*, use_site_for_root: bool = False) -> str. pypi.org - Signature changed
platformdirs.user_fonts_path
Was def user_fonts_path() -> Path; now def user_fonts_path(*, use_site_for_root: bool = False) -> Path. pypi.org - Signature changed
platformdirs.user_music_dir
Was def user_music_dir(*, ensure_exists: bool = False) -> str; now def user_music_dir(*, ensure_exists: bool = False, use_site_for_root: bool = False) -> str. pypi.org - Signature changed
platformdirs.user_music_path
Was def user_music_path(*, ensure_exists: bool = False) -> Path; now def user_music_path(*, ensure_exists: bool = False, use_site_for_root: bool = False) -> Path. pypi.org
And 10 more in this version. Sign up to see every change
platformdirs 4.14.3 breaking changes
- Behavior changed
Absolute XDG directory values now keep trailing whitespace rather than resolving to a different directory. Code that relied on the old trimmed path may now resolve a different directory. github.com
platformdirs 4.14.0 breaking changes
- Behavior changed
site_data_dir
With multipath=True, appname or version containing os.pathsep now raises ValueError instead of returning a string that splits outside the site base. Callers passing such values must change them. github.com - Behavior changed
user_documents_dir
User directories are no longer resolved against the working directory when HOME is relative. The home comes from the password database, or RuntimeError is raised. github.com - Behavior changed
user_runtime_dir
user_runtime_dir now refuses a symlink as XDG_RUNTIME_DIR when the value ends with / or /. instead of following it. github.com - Signature changed
platformdirs.user_desktop_dir
Was def user_desktop_dir() -> str; now def user_desktop_dir(*, ensure_exists: bool = False) -> str. pypi.org - Signature changed
platformdirs.user_desktop_path
Was def user_desktop_path() -> Path; now def user_desktop_path(*, ensure_exists: bool = False) -> Path. pypi.org - Signature changed
platformdirs.user_documents_dir
Was def user_documents_dir() -> str; now def user_documents_dir(*, ensure_exists: bool = False) -> str. pypi.org - Signature changed
platformdirs.user_documents_path
Was def user_documents_path() -> Path; now def user_documents_path(*, ensure_exists: bool = False) -> Path. pypi.org - Signature changed
platformdirs.user_downloads_dir
Was def user_downloads_dir() -> str; now def user_downloads_dir(*, ensure_exists: bool = False) -> str. pypi.org - Signature changed
platformdirs.user_downloads_path
Was def user_downloads_path() -> Path; now def user_downloads_path(*, ensure_exists: bool = False) -> Path. pypi.org - Signature changed
platformdirs.user_music_dir
Was def user_music_dir() -> str; now def user_music_dir(*, ensure_exists: bool = False) -> str. pypi.org
And 11 more in this version. Sign up to see every change
platformdirs 4.13.4 breaking changes
- Behavior changed
On Windows, the Projects directory lookup now raises RuntimeError when the home directory cannot be resolved, instead of returning a path rooted at a literal ~. Code that relied on that path must handle the exception. github.com - Behavior changed
On iOS, directory lookups now raise RuntimeError when the home directory cannot be resolved, instead of returning paths rooted at a literal ~. Code that relied on those paths must handle the exception. github.com
platformdirs 4.12.4 breaking changes
- Signature changed
platformdirs.testing.isolated_dirs
Was def isolated_dirs(root: str | os.PathLike[str]) -> Iterator[Path]; now def isolated_dirs(root: str | os.PathLike[str]) -> Generator[Path, None, None]. pypi.org
Older versions
13 older versions, each with its first changes. Sign up to see every change
Show 13 older versions
platformdirs 4.12.0 breaking changes
- Behavior changed
On iOS, directories now follow the app container layout, such as ~/Library/Application Support for data, which changes where existing code finds its files. github.com - Behavior changed
ensure_exists
On POSIX platforms, ensure_exists now creates missing user app directories and their parents with mode 0700. Code that relies on the previous permissions must be checked. github.com
And 4 more in this version.
platformdirs 4.11.15 breaking changes
- Behavior changed
Android shared-storage directories now sit under the current user's /storage/emulated/<user id> rather than user 0's. Code that expects the user 0 path will see a different location. github.com - Behavior changed
Android video and five non-standard media folders now resolve to Movies and Documents instead of their previous locations. Code that depends on the old paths must be updated. github.com
platformdirs 4.11.14 breaking changes
- Behavior changed
The Unix runtime-<uid> temporary fallback is created with mode 0700 and is rejected if another user owns it. Code relying on looser permissions or other owners must adapt. github.com - Behavior changed
appauthor
Setting appauthor after construction now raises when the value leaves the base directory. Code that sets such values must be changed. github.com
And 6 more in this version.
platformdirs 4.11.11 breaking changes
- Behavior changed
Values for appname, appauthor and version that leave the platform base directory now raise ValueError instead of being accepted. Code passing such values must change them to plain names. github.com
platformdirs 4.11.9 breaking changes
- Behavior changed
Android
When the app folder cannot be found, Android directories now raise RuntimeError rather than TypeError, so code catching TypeError must catch RuntimeError instead. github.com - Behavior changed
user_documents_dir
Parsing of user-dirs.dirs now returns the unescaped quoted value and ignores text after the closing quote, so code that relied on the old raw values may see different paths. github.com
And 2 more in this version.
platformdirs 4.11.8 breaking changes
- Behavior changed
Relative entries in XDG_DATA_DIRS and XDG_CONFIG_DIRS are skipped, so code that relied on a relative path there will now get the fallback directory instead. github.com
platformdirs 4.11.6 breaking changes
- Signature changed
platformdirs.user_bin_dir
Was def user_bin_dir() -> str; now def user_bin_dir(*, use_site_for_root: bool = False) -> str. pypi.org - Signature changed
platformdirs.user_bin_path
Was def user_bin_path() -> Path; now def user_bin_path(*, use_site_for_root: bool = False) -> Path. pypi.org
platformdirs 4.11.5 breaking changes
- Signature changed
platformdirs.site_applications_dir
Was def site_applications_dir(multipath: bool = False, ensure_exists: bool = False) -> str; now def site_applications_dir(multipath: bool = False, ensure_exists: bool = False, *, appname: str | None = None, appauthor: str | Literal[False]... pypi.org - Signature changed
platformdirs.site_applications_path
Was def site_applications_path(multipath: bool = False, ensure_exists: bool = False) -> Path; now def site_applications_path(multipath: bool = False, ensure_exists: bool = False, *, appname: str | None = None, appauthor: str |... pypi.org
And 4 more in this version.
platformdirs 4.11.2 breaking changes
- Behavior changed
iter_cache_dirs
With multipath set on macOS, iter_cache_dirs now yields each entry separately instead of one os.pathsep-joined string. Code that split or parsed the joined string must be updated. github.com
platformdirs 4.10.0 breaking changes
- Behavior changed
site_config_path
With multipath set, site_config_path on macOS now returns only the first path instead of all of them. Code that relied on the full list must be updated. github.com
platformdirs 4.9.6 breaking changes
- Signature changed
platformdirs.__version_info__
Was __version_tuple__: VERSION_TUPLE; now __version_tuple__: tuple[int | str, ...]. pypi.org - Signature changed
platformdirs.version.__commit_id__
Was __commit_id__: COMMIT_ID; now __commit_id__: str | None. pypi.org
And 3 more in this version.
platformdirs 4.0.0 breaking changes
- Behavior changed
site_cache_dir
On UNIX, site_cache_dir reverts to /var/cache instead of /var/tmp as in 3.11.0. Code that depends on the /var/tmp path must be updated. github.com
platformdirs 3.0.0 breaking changes
- Behavior changed
site_config_dir
On macOS, site_config_dir now resolves under */Library/Application Support to mirror the data dirs. Code that relied on the old location must be updated. github.com - Behavior changed
user_config_dir
On macOS, user_config_dir now resolves under */Library/Application Support to mirror the data dirs. Code that relied on the old config location must be updated. github.com
And 1 more in this version.
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.