func (fileIndex FileIndex) AddFileToIndex(filePath string) error {
	hash, err := deriveHashFromFile(filePath)
	if err != nil {
		return err
	}
	log.Println("[DEBUG]", "Adding to index:", hash, filePath)
	fileIndex.hashToPath[hash] = filePath
	return nil
}
// AddFileToIndex adds the specified file to the index.
AddFileToIndex adds the specified file to the index.
// AddFileToIndex adds the specified file to the index .
func (fileIndex FileIndex) AddFileToIndex(filePath string) error {
	hash, err := deriveHashFromFile(filePath)
	if err != nil {
		return err
	}
	log.Println("[DEBUG]", "Adding to index:", hash, filePath)
	fileIndex.hashToPath[hash] = filePath
	return nil
}
func ( fileIndex FileIndex ) AddFileToIndex ( filePath string ) error { hash , err := deriveHashFromFile ( filePath ) if err != nil { return err } log . Println ( " " , " " , hash , filePath ) fileIndex . hashToPath [ hash ] = filePath return nil }
AddFileToIndex adds the specified file to the index.
AddFileToIndex adds the specified file to the index .