/// Get the preferred snapshot directory
///
/// Defaults to the `snapshots` subdirectory under the preferred Stronghold home directory as
/// returned by [`home_dir`](fn.home_dir.html).
Get the preferred snapshot directory
Defaults to the `snapshots` subdirectory under the preferred Stronghold home directory as
returned by [`home_dir`](fn.home_dir.html).
Get the preferred snapshot directory Defaults to the ` snapshots ` subdirectory under the preferred Stronghold home directory as returned by [ ` home_dir ` ] ( fn . home_dir . html ) .
pub fn snapshot_dir() -> crate::Result<PathBuf> {
    let home_dir = home_dir()?;
    let snapshot_dir = home_dir.join("snapshots");
    verify_or_create(&snapshot_dir)?;
    Ok(snapshot_dir)
}
pub fn snapshot_dir ( ) -> crate :: Result < PathBuf > { let home_dir = home_dir ( ) ? ; let snapshot_dir = home_dir . join ( " " ) ; verify_or_create ( & snapshot_dir ) ? ; Ok ( snapshot_dir ) }
Get the preferred snapshot directory
Defaults to the `snapshots` subdirectory under the preferred Stronghold home directory as
returned by [`home_dir`](fn.home_dir.html).
Get the preferred snapshot directory Defaults to the ` snapshots ` subdirectory under the preferred Stronghold home directory as returned by [ ` home_dir ` ] ( fn . home_dir . html ) .