Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions docs/usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,18 @@ Defaults to ``False``.
dirs = PlatformDirs("SuperApp", "Acme", ensure_exists=True)
dirs.user_cache_dir # directory is created if it does not exist

Directories not covered
-----------------------

``platformdirs`` does not provide a property for the user's **home directory**. Use
:meth:`pathlib.Path.home` or :func:`os.path.expanduser` from the standard library instead:

.. code-block:: pycon

>>> from pathlib import Path
>>> Path.home()
PosixPath('/Users/trentm')

XDG environment variables
-------------------------

Expand Down