pypi platformdirs 4.14.8

one hour ago

Bug fixes

  • Check Unix runtime directory parents, including sticky directories and symlink targets. Recheck the path after creating a missing XDG runtime directory (#738) by @gaborbernat.
  • Check symlinks and entries in shared parents when creating POSIX user directories. Shared sticky directories must belong to root or the caller. Support system-owned Android paths and group-writable container homes (#741) by @gaborbernat.
  • Check the parents of the temporary Unix runtime directory. A lookup accepts an existing group-writable fallback. File searches skip it until ensure_exists repairs its permissions. Raise an error if no safe temporary base is available (#744) by @gaborbernat.
  • Create deeply nested directories without reaching Python's recursion limit (#733) by @gaborbernat.
  • Ignore Windows UNC folder overrides with a missing server or share, or with . or .. as either name (#724) by @mansur-akhmadi and @gaborbernat.
  • Keep the newest active isolated_dirs() root when overlapping contexts close out of order (#729) by @gaborbernat.
  • On macOS, validate the XDG runtime directory and its parents for both user and site paths. File placement and search use the native fallback when the override is unusable (#745) by @gaborbernat.
  • Read Unix media settings from a trusted user-dirs.dirs file, including under a group-writable ~/.config. Create configured media directories with mode 0775 subject to the umask (#740) by @gaborbernat.
  • Root can look up existing service-owned Unix site directories. Creating directories or placing files requires a root-owned path. Group-writable ancestors are allowed. New directories use mode 0755 subject to the umask (#742) by @gaborbernat.
  • Use root's password database home for Unix media and fonts when root redirection is active and HOME is unset, empty or relative (#730) by @gaborbernat.
  • Use the same Unix site runtime fallback for lookup and creation when the XDG override fails validation. With root redirection, site_runtime_dir creates a missing XDG_RUNTIME_DIR with mode 0700 when ensure_exists=True. Find runtime files in valid fallbacks and in directories selected by root redirection or test isolation (#745) by @gaborbernat.

Performance

New Contributors

🐍 PyPI release

📜 Full Changelog

Don't miss a new platformdirs release

NewReleases is sending notifications on new releases.