pub fn cache_path() -> Result<PathBuf, DirectoryError>
Expand description
Attempts to retrieve the current platform’s cache directory.
§Errors
The underlying reason for this method failing depends on the platform, however it always boils down
to the base directory ($HOME
, %APPDATA%
, …) not being found.