Paths
全局单例, 管理Api库的下载, 日志和缓存库
class PathManager
各个平台下的默认路径:
-
Linux:
-
cache:
$XDG_CACHE_HOME/qqmusic-api-cxx/cache
OR$HOME/.cache/qqmusic-api-cxx/cache
-
log:
$XDG_CACHE_HOME/qqmusic-api-cxx/log
OR$HOME/.cache/qqmusic-api-cxx/log
-
download:
$HOME/Download/qqmusic-api-cxx
-
-
Windows:
-
cache:
%LOCALAPPDATA%\cache
OR%USERPROFILE%\cahce
-
log:
%LOCALAPPDATA%\log
OR%USERPROFILE%\log
-
download:
%USERPROFILE%\Download\qqmusic-api-cxx
-
-
MacOS:
-
cache:
$HOME/Library/Caches/qqmusic-api-cxx/cache
-
log:
$HOME/Library/Caches/qqmusic-api-cxx/log
-
download:
$HOME/Downloads/qqmusic-api-cxx
-
fn get_instance
获得PathManager全局单例的引用
fn set_download_path
修改默认下载路径
fn set_cache_path
修改默认缓存路径
fn set_log_path
修改默认日志路径
fn get_cache_path
获取默认缓存路径
fn get_download_path
获取默认下载路径
fn get_log_path
获取默认日志路径