Skip to main content

default_db_path

Function default_db_path 

Source
pub fn default_db_path() -> Option<PathBuf>
Expand description

Return the default macOS Messages database path.

Resolves the home directory with std::env::home_dir: HOME on Unix and USERPROFILE on Windows. Returns None when neither the environment nor the OS reports a home directory.

ยงExample:

use imessage_database::util::dirs::default_db_path;

let path = default_db_path().unwrap();
println!("{path:?}");