//! Shared filesystem helpers.
use io;
use ;
/// Atomically write `contents` to `path` via a sibling tempfile + rename.
pub
/// Return the user's home directory.
///
/// Uses `HOME` on Unix / `USERPROFILE` on Windows, falling back to
/// [`std::env::home_dir`] for edge cases. Returns `None` when the home
/// directory cannot be determined.
// used from binary (cmd/init.rs, cmd/setup.rs); not from lib integration tests
pub