Download files on FTP

I restructured it and it works. Thanks how do I put the if conditions only download the latest files? the previous hours files the robot wouldnt download again to my local drive?