I would like to write all the filepaths to a new text file. My code only writes the last filepath rather than all of filepaths as I would like it to. Why is it doing this ?;