use anyhow::Result;
use std::path::PathBuf;
use tracing::info;
pub async fn run(data_dir: PathBuf) -> Result<()> {
info!("FireCloud Node Information");
info!("===========================");
info!("Data directory: {}", data_dir.display());
let store_path = data_dir.join("chunks");
if store_path.exists() {
let store = firecloud_storage::ChunkStore::open(&store_path)?;
let count = store.count()?;
info!("Stored chunks: {}", count);
} else {
info!("Stored chunks: 0 (store not initialized)");
}
Ok(())
}