Re: How, exactly DO I use getAttributes to work ou (General questions)
Daniel,
Please note that setting RemotePath will never cause an exception. RemotePath doesn't send anything to server, but only sets property.
You need to actually call a method in order to send something to server.
As for errors/exception handling, any of these should work:
[code] Try
sftp1.ListDir( /home/weonlydo/ )
Catch ex As Exception
'An error occured, do something
End Try
Or:
On Error Resume Next
sftp1.ListDir( /home/weonlydo )
If sftp1.LastError.Message <> Nothing Then
'...
End If[/code]
Hope I helped.
regards,
Damba
Complete thread:
- How, exactly DO I use getAttributes to work out if - Daniel, 2009-06-02, 12:31
- Re: How, exactly DO I use getAttributes to work ou - wodDamir, 2009-06-02, 12:38
- Re: How, exactly DO I use getAttributes to work ou - Daniel, 2009-06-02, 12:43
- Re: How, exactly DO I use getAttributes to work ou - wodDamir, 2009-06-02, 12:47
- Re: How, exactly DO I use getAttributes to work ou - Daniel, 2009-06-02, 13:07
- Re: How, exactly DO I use getAttributes to work ou - wodDamir, 2009-06-02, 13:22
- Re: How, exactly DO I use getAttributes to work ou - Daniel, 2009-06-02, 13:35
- Re: How, exactly DO I use getAttributes to work ou - wodDamir, 2009-06-02, 13:51
- Re: How, exactly DO I use getAttributes to work ou - Daniel, 2009-06-02, 13:35
- Re: How, exactly DO I use getAttributes to work ou - wodDamir, 2009-06-02, 13:22
- Re: How, exactly DO I use getAttributes to work ou - Daniel, 2009-06-02, 13:07
- Re: How, exactly DO I use getAttributes to work ou - wodDamir, 2009-06-02, 12:47
- Re: How, exactly DO I use getAttributes to work ou - Daniel, 2009-06-02, 12:43
- Re: How, exactly DO I use getAttributes to work ou - wodDamir, 2009-06-02, 12:38