Skip to main content

normalize_facts_core/
file.rs

1//! File metadata types for code facts.
2
3use serde::{Deserialize, Serialize};
4
5/// Metadata about an indexed file
6#[derive(Debug, Clone, Serialize, Deserialize)]
7pub struct IndexedFile {
8    /// File path relative to the repo root.
9    pub path: String,
10    /// True if this entry is a directory rather than a file.
11    pub is_dir: bool,
12    /// Modification timestamp in seconds since Unix epoch.
13    pub mtime: i64,
14    /// Line count; 0 for directories.
15    pub lines: usize,
16}