Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

jmjones8

Download last item in a list

I am trying to figure out how I can download the last file in a list automatically when I won't know the name of the file. An example of the list is:

SIR_20140616_2345.png
SIR_20140616_2345_geo.tif
SIR_20140616_2345_masked.png
SIR_20140616_2349.png
SIR_20140616_2349_geo.tif
SIR_20140616_2349_masked.png
SIR_20140616_2353.png
SIR_20140616_2353_geo.tif
SIR_20140616_2353_masked.png
SIR_20140616_2357.png
SIR_20140616_2357_geo.tif
SIR_20140616_2357_masked.png

I just need to know how to single out the last file for downloading. Thanks for your help.