HI all - SFTP Question here. I am able to dowload ...
# suitescript
g
HI all - SFTP Question here. I am able to dowload a file without knowing it's name beforehand by using a wild card:
Copy code
var downloadedFile = connection.download({
      directory: '/xxxx/xxx/xxxx',
      filename: '*.extension'
    })
How would I handle it if there are multiple files with the same extension but I have no way of knowing their names before hand and I need all the files?