pub fn open_containing_folder(path: impl AsRef<Path>) -> Result<()>Expand description
Opens the directory containing an existing file or directory.
§Errors
Returns Error::InvalidInput if path is empty, contains NUL bytes, or has
no containing directory.
Returns Error::PathDoesNotExist if the path does not exist.
Returns Error::WindowsApi if ShellExecuteW reports failure.
§Examples
win_desktop_utils::open_containing_folder(r"C:\Windows\notepad.exe")?;