latest file download using ftp



Hi All,
How can I download only the latest file from ftp server.
I am able to download all files using script. Please let me know if I
want to download the latest file only thank you.
Bhargava.
.