Bug fixes
- Fall back to the default media directories when
user-dirs.dirsexists but cannot be read, rather than raisingPermissionErrororIsADirectoryError(#632) by @Debasishhh and @gaborbernat. - Resolve the Windows Projects directory from
USERPROFILEwhenHOMEis empty, rather than raisingRuntimeError(#635) by @pabszero and @gaborbernat. - Resolve
$HOMEentries inuser-dirs.dirsto/Documentsinstead of//Documentswhen the home directory is/(#636) by @darrenhuai and @gaborbernat. - Print the error and keep listing directories in
python -m platformdirswhen the home directory is unknown, rather than stopping withRuntimeError(#638) by @tongwentao and @gaborbernat. - Raise
FileNotFoundErrorfrom theplace_*_filemethods when the user directory is on a missing Windows drive or network share, rather than recursing untilRecursionError(#639) by @nk-batman21 and @gaborbernat. - Search the directories of a subclass's overridden
iter_*_pathsmethod infind_*_fileandfind_*_files, rather than the base class ones (#640) by @KennyMcSimpson and @gaborbernat. - Keep
isolated_dirspaths under a relative root after the working directory changes, and yield the root as an absolute path (#643) by @0x5t4l1n and @gaborbernat. - Ignore Windows folder overrides with a UNC path missing its server or share name, such as
\\server, instead of treating the application name as the share (#647) by @RedCat888 and @gaborbernat.
Documentation
- Remove the literal
/opt/homebrewfrom a macOS source comment. Homebrew replaces it with a placeholder when bottling on Apple Silicon but not on Linux, so formulae that bundle platformdirs could not share one bottle across both (#644) by @Moisan and @gaborbernat.
New Contributors
- @Moisan made their first contribution in #644
- @pabszero made their first contribution in #635
- @RedCat888 made their first contribution in #647
- @yuefdev made their first contribution in #630
- @Debasishhh made their first contribution in #632
- @tongwentao made their first contribution in #638
- @nk-batman21 made their first contribution in #639
- @KennyMcSimpson made their first contribution in #640
- @0x5t4l1n made their first contribution in #643