Creates an index of the files in the current location, storing the index