Chilkat VB.NET SFtpDir Class Reference

SFtpDir

Represents a remote SFTP directory listing.

Object Creation

(C#)
Chilkat.SFtpDir obj = new Chilkat.SFtpDir();
(VB.NET)
Dim obj As New Chilkat.SFtpDir()

Properties

LastErrorHtml As String (ReadOnly)

Error information in HTML format for the last method called.

LastErrorText As String (ReadOnly)

Error information in plain-text format for the last method called.

LastErrorXml As String (ReadOnly)

Error information in XML format for the last method called.

NumFilesAndDirs As Integer (ReadOnly)

The number of entries in this directory listing.

OriginalPath As String (ReadOnly)

The original path used to fetch this directory listing. This is the string that was originally passed to the OpenDir method when the directory was read.

Methods

Function GetFileObject(ByVal index As Integer) As SFtpFile

Returns the Nth entry in the directory. Indexing begins at 0.

Function GetFilename(ByVal index As Integer) As String

Returns the Nth filename in the directory (indexing begins at 0).

Returns Nothing on failure

Function SaveLastError(ByVal filename As String) As Boolean

Saves the last error information to an XML formatted file.