Returns the path to the user's audio directory.
xdg-user-dirs
XDG_MUSIC_DIR
$HOME/Music
{FOLDERID_Music}
import { audioDir } from '@tauri-apps/api/path';const audioDirPath = await audioDir(); Copy
import { audioDir } from '@tauri-apps/api/path';const audioDirPath = await audioDir();
1.0.0
Returns the path to the user's audio directory.
Platform-specific
xdg-user-dirs
'XDG_MUSIC_DIR
.$HOME/Music
.{FOLDERID_Music}
.