Generates an index of a given file path