Using R to download newest files from ftp-server

I have a a number of files named FileA2014-03-05-10-24-12 FileB2014-03-06-10-25-12 Where the part "2014-03-05-10-24-12" means "Year/Day/Month/Hours/Minutes/Seconds/". These files reside on a ftp-...