foo.csv has been removed before (under 'Specifying date columns'), so you will have to move that remove below this.