PeopleTools and Lifecycle Management - PSFT (MOSC)

MOSC Banner

Built in function "FindFiles" is not working for remote SFTP using a URL

edited Feb 20, 2019 12:02PM in PeopleTools and Lifecycle Management - PSFT (MOSC) 4 commentsAnswered

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/";

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center