func (deduper Deduper) AddDirectoryToIndex(dirPath string) error {
	isIndexed := deduper.fileIndex.IsDirectoryIndexed(dirPath)
	if !isIndexed {
		deduper.fileIndex.BuildIndexForDirectory(dirPath)
		// Ignoring errors because the directory might not exist.
	}
	return nil
}
// AddDirectoryToIndex recursively indexes all files in the specified directory.
AddDirectoryToIndex recursively indexes all files in the specified directory.
// AddDirectoryToIndex recursively indexes all files in the specified directory .
func (deduper Deduper) AddDirectoryToIndex(dirPath string) error {
	isIndexed := deduper.fileIndex.IsDirectoryIndexed(dirPath)
	if !isIndexed {
		deduper.fileIndex.BuildIndexForDirectory(dirPath)
	}
	return nil
}
func ( deduper Deduper ) AddDirectoryToIndex ( dirPath string ) error { isIndexed := deduper . fileIndex . IsDirectoryIndexed ( dirPath ) if ! isIndexed { deduper . fileIndex . BuildIndexForDirectory ( dirPath ) } return nil }
AddDirectoryToIndex recursively indexes all files in the specified directory.
AddDirectoryToIndex recursively indexes all files in the specified directory .
// Ignoring errors because the directory might not exist.