The for loop that I\'m using to check for modified files is for some reason inserting the same file data twice. I want the file data to be inserted to the csv file once. I\'