func (fileIndex FileIndex) IsFilePresent(filePath string) (bool, error) {
	hash, err := deriveHashFromFile(filePath)
	if err != nil {
		return false, err
	}
	_, isPresent := fileIndex.hashToPath[hash]
	return isPresent, nil
}
// IsFilePresent determines whether the specified file has been indexed.
IsFilePresent determines whether the specified file has been indexed.
// IsFilePresent determines whether the specified file has been indexed .
func (fileIndex FileIndex) IsFilePresent(filePath string) (bool, error) {
	hash, err := deriveHashFromFile(filePath)
	if err != nil {
		return false, err
	}
	_, isPresent := fileIndex.hashToPath[hash]
	return isPresent, nil
}
func ( fileIndex FileIndex ) IsFilePresent ( filePath string ) ( bool , error ) { hash , err := deriveHashFromFile ( filePath ) if err != nil { return false , err } _ , isPresent := fileIndex . hashToPath [ hash ] return isPresent , nil }
IsFilePresent determines whether the specified file has been indexed.
IsFilePresent determines whether the specified file has been indexed .