IT Process Automation

 View Only

Get sFTP directory content

  • 1.  Get sFTP directory content

    Posted Mar 27, 2020 08:00 AM
    Hi all,

    I'm need to download a file from a sFTP server but I don't know the full file name (Example: File Name - "Name_ddmmyyyyHHMMSS.csv", I can know the date, but not the time -  "Name_ddmmyyyy*.csv").
    So I'm trying to get directory content and then using javascript collect the full file name.
    Using Get_Directory_Content operator, I'm trying to pass someting like - "sftp://username:password@ip/biparqprd/IN/" using windows explorer it works but at PAM I get the message "Directory doesn't exists".
    Does Anyone knows how to do that?
     
    Regards,
    Sérgio Castro