pub async fn file_size<T: AsRef<Path>>(path: T) -> Result<u64> {
        let metadata = tokio::fs::metadata(path.as_ref()).await.with_context(|| {
            format!(
                "Failed to get metadata for file {}",
                path.as_ref().display()
            )
        })?;

        Ok(metadata.len())
    }
Gets file size without reading the entire file
crates/forge_fs/src/file_size.rs