templates / branches--on commit write_index(): update index_state->timestamp after flushing to disk (e1afca4)
   1: this is just to ensure the directory exists.