templates / branches--on commit dir: convert read_directory to take an index (2c1eb10)
   1: this is just to ensure the directory exists.