Built in function "FindFiles" is not working for remote SFTP using a URL
Need to get the file name off the SFTP remote server to pass to the file name to the GetAttachment function, so it will download the file from the SFTP server to Our application server. My question is there another way to get the file name from the a remote SFTP server using the URL SFTP?
The following code does not work, when using a SFTP URL remote server:
&sSrvDir = GetURL(URL.JC_APPLE_DATA);
&sFileList = FindFiles(&sSrvDir | "*", %FilePath_Absolute);
This code works for a directory on the application server:
&PsHome = GetEnv("PS_CUST_HOME");
&sSrvDir = GetEnv("PS_CUST_HOME") | "/data/APPLE/data/";