I have been using the SFTP module in a Scheduled Script to successfully to upload files to a third party SFTP server, this works well. But I also need to download files and the problem is that these files have a timestamp in the file name. Because its a third party I can't dictate the file name and the Netsuite SFTP module only seems to be able to download a file if you know the name. In other words there is no feature to request a directory listing on the remote server and hence determine what the file name is before you download it.
Has anyone else had this problem?
I am wondering is the solution is to abandon the Netsuite SFTP module and use some custom code. I am guessing there are some Javascript libraries that implement an SFTP client that might work. Does anyone have any comments on this approach and what to watch out for? I am not sure how compatible the Netsuite javascript implementation used in Suitescript is with generic javascript libraries that are generally intended for client side use.