pub async fn audio_dir() -> Result<PathBuf, Error>
Expand description
Returns the path to the user’s audio directory.
§Platform-specific
- Linux: Resolves to
xdg-user-dirs
’XDG_MUSIC_DIR
. - macOS: Resolves to
$HOME/Music
. - Windows: Resolves to
{FOLDERID_Music}
.
§Example
use tauri_sys::path::audio_dir;
let audio_dir_path = audio_dir().await?;