pub fn cache_dir(dir: Option<PathBuf>) -> Result<PathBuf>
A helper that fetches the default directory if the given directory is None.
None