tauri_sys::path

Function picture_dir

source
pub async fn picture_dir() -> Result<PathBuf, Error>
Expand description

Returns the path to the user’s picture directory.

§Platform-specific
  • Linux: Resolves to xdg-user-dirsXDG_PICTURES_DIR.
  • macOS: Resolves to $HOME/Pictures.
  • Windows: Resolves to {FOLDERID_Pictures}.

§Example

use tauri_sys::path::picture_dir;

let picture_dir_path = picture_dir().await?;