Re: wod SFTP Active X control GetAttributes event - WeOnlyDo Discussion board

Re: wod SFTP Active X control GetAttributes event (General questions)

by wodDamir, Monday, September 10, 2007, 13:15 (6284 days ago) @ Love Chopra

Hi,

Can you try the code like this?

----------------------------------------------------------------
sftp1.HostName = your_hostname
sftp1.Login = your_login
sftp1.Password = your_password
sftp1.Connect

End Sub

Private Sub sftp1_Attributes(ByVal Size As Long, ByVal Uid As Long, ByVal Gid As Long, ByVal Permissions As Long, ByVal AccessTime As Date, ByVal ModificationTime As Date)
Debug.Print Size
End Sub

Private Sub sftp1_Connected(ByVal ErrorCode As Integer, ByVal ErrorText As String)
If ErrorCode = 0 Then
sftp1.GetAttributes /home/something/test.txt
Else
Debug.Print ErrorText
End If
End Sub
----------------------------------------------------------------

Does this work?

Regards,
Damba


Complete thread: