1 2 3 4 5 6 7 8 9 10 11
use std::path::PathBuf; use dirs::home_dir; pub struct Paths {} impl Paths { pub fn home() -> PathBuf { home_dir().unwrap_or_default() } }