IndexFileInternal

Function IndexFileInternal 

Source
pub async fn IndexFileInternal(
    file_path: &PathBuf,
    config: &IndexingConfig,
    _index_ref: &RwLock<FileIndex>,
    _patterns: &[String],
) -> Result<(FileMetadata, Vec<SymbolInfo>)>
Expand description

Index a single file internally with comprehensive validation

This function is called by parallel tasks during directory scanning and includes:

  • File metadata extraction
  • Size validation
  • SHA-256 checksum calculation
  • Encoding detection
  • MIME type detection
  • Language detection
  • Symbol extraction for code files