My requirement is to get the Latest files from a remote AIX server to Windows machine.
I have used he WINSCP example written in JS: https://winscp.net/eng/docs/script_download_most_recent_file
But i get the error Error listing Directory : No such file or directory.
I have given the REMOTEPATH as : apps/home/XXXX/ in which fetching files of type *.csv.
Please refer attached file for more details.