indexExists

fun indexExists(directory: Directory): Boolean

Returns true if an index likely exists at the specified directory. Note that if a corrupt index exists, or if an index in the process of committing the return value is not reliable.

Return

true if an index exists; false otherwise

Parameters

directory

the directory to check for an index