Skip to main content

open_file

Function open_file 

Source
pub fn open_file(path: &str) -> Result<(), String>
Expand description

Open a file with the default application. Returns Ok(()) if the launch command was successfully invoked.

§Arguments

  • path - The file path to open.

§Returns

  • Ok(()) - The launch command was invoked successfully.
  • Err(String) - Failed to invoke the launch command.