ObjFTPSSH=Createobject("WeOnlyDo.wodFtpDLXCom.1") *ObjFTPSSH.LicenseKey="S6MH-CAM4-ZS7V-LBRR" && Component Setup should also have same key installation to run this line of code (TRIAL VERSION DONT NEED THIS LINE) ObjFTPSSH.HostName = <<UR IP ADDRESS / HOST NAME>> ObjFTPSSH.Login = <<USERNAME>> ObjFTPSSH.Password = <<PASSWORD>> ObjFTPSSH.Port = 22 ObjFTPSSH.Blocking=.F. && A Boolean value. When set to True forces wodFtpDLX to execute methods in blocking manner - waits until method completes ObjFTPSSH.Protocol=1 && FTP 0 FTP protocol. | SFTP 1 SFTP protocol. | FTPSnodata 2 FTP+SSL protocol with insecured data channel. | FTPSwithdata 3 FTP+SSL protocol with secured data channel. | FTPSimplicit 4 FTP+SSL implicit on port 990. ObjFTPSSH.Timeout = 60 &&An Integer value. Specifies number of seconds before user will be disconnected. ObjFTPSSH.Connect>This is the code I wrote:
> ObjWOD = CreateObject( "WeOnlyDo.wodSFTPCom.1") > WITH ObjWOD > .HostName = mv_host > .Login = mv_usr > .Password = mv_pwd > .Blocking = 1 > mv_con = .Connect > mv_lstdir = .ListDir("/") > .Disconnect > ENDWITH >>Variables mv_con and mv_lstdir are both showing null, so I am not connecting.