Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var host = "host.name",
- port = port_number,
- username = user_name,
- password = pass_word;
- try{
- var sftp : SFTPClient = new dw.svc.SFTPClient();
- sftp.connect(host, port, username, password);
- var data : String = sftp.get("Impex/export/files/filename.xml");
- sftp.disconnect();
- }catch(e){
- return "Exception: "+ e;
- }
Add Comment
Please, Sign In to add comment