tauri_sys::path

Function audio_dir

source
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-dirsXDG_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?;