use Path;
/// Checks if the storage file exists and is a valid file before initializing.
///
/// # Parameters:
/// - `path`: The path to the storage file.
///
/// # Returns:
/// - `Ok(())` if the file exists and is a regular file.
/// - `Err(std::io::Error)` if the file does not exist or is not a regular file.