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)
}
/// get the snapshot dir of the user's device
get the snapshot dir of the user's device
get the snapshot dir of the user ' s device
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 snapshot dir of the user's device
get the snapshot dir of the user ' s device