Skip to main content

session_file_path

Function session_file_path 

Source
pub fn session_file_path() -> Result<PathBuf, SessionError>
Expand description

Returns the path to the session file: ~/.chrome-cli/session.json.

Uses $HOME on Unix and %USERPROFILE% on Windows.

ยงErrors

Returns SessionError::NoHomeDir if the home directory cannot be determined.