Skip to main content

open_with

Function open_with 

Source
pub fn open_with(file_path: PathBuf) -> Result<(), Box<dyn Error>>
Expand description

Invokes the platform’s “Open With” dialog for the file at the provided path.

§Arguments

  • file_path - A PathBuf that holds the path to the file to be opened.

§Errors

Returns an error if the file cannot be opened.