Is there a way to determine the name of latest file on Unix SFTP server using Java JSch?
I want to copy the latest file from server to local machine. I already have a working code for that. But I'm not able to identify the latest file. The folder contains many files in below format:
Some Report dd/MM/yyyy hh:ss
I tried the code mentioned in this post but it isn't picking up the latest file. Also the code never seems to stop executing.
Any help would be appreciated.