tox-dev/platformdirs

introduce site_cache_dir

Closed this issue · 1 comments

efiop commented

Similar to user_cache_dir but system-wide. Looks like on *NIX it should be /var/cache if following FHS. Windows is not that clear though, CSIDL_COMMON_APPDATA seems appropriate but it is already used for site_data_dir and CSIDL_LOCAL_APPDATA is used for user_data_dir. Maybe people more familiar with windows could suggest something. I'm happy to contribute the implementation myself.

PS: thank you for keeping appdirs alive 🙏

efiop commented

Ok, so looks like XDG doesn't have anything for that (or I'm missing something), so FHS tells us /var/cache on unix.

On macos it should be /Library/Caches.

On windows it should probably be %CSIDL_COMMON_APPDATA%\\...\\Cache (similar to user_data_dir and user_cache_dir relations)