Get the full path to the index file on disk.
an existing index object
path to index file or NULL for in-memory index