Function tauri_sys::path::video_dir

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

Returns the path to the user’s video directory.

§Platform-specific
  • Linux: Resolves to xdg-user-dirsXDG_VIDEOS_DIR.
  • macOS: Resolves to $HOME/Movies.
  • Windows: Resolves to {FOLDERID_Videos}.

§Example

use tauri_sys::path::video_dir;

let video_dir_path = video_dir().await?;