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.
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.