ChilkatSFtpDir ActiveX Reference

ChilkatSFtpDir

Represents a remote SFTP directory listing.

Object Creation

(Visual Basic 6.0)
Dim obj As New ChilkatSFtpDir
(ASP)
set obj = Server.CreateObject("Chilkat.SFtpDir")
(VBScript)
set obj = CreateObject("Chilkat.SFtpDir")
(Delphi)
obj := TChilkatSFtpDir.Create(Self);
(FoxPro)
loObject = CreateObject('Chilkat.SFtpDir')
(SQL Server)
EXEC @hr = sp_OACreate 'Chilkat.SFtpDir', @obj OUT
(Javascript)
var obj = new ActiveXObject("Chilkat.SFtpDir");

Properties

LastErrorHtml As String (read-only)

Error information in HTML format for the last method called.

LastErrorText As String (read-only)

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

LastErrorXml As String (read-only)

Error information in XML format for the last method called.

NumFilesAndDirs As Long (read-only)

The number of entries in this directory listing.

OriginalPath As String (read-only)

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

GetFileObject(index As Long) As ChilkatSFtpFile

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

GetFilename(index As Long) As String

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

Returns a null on failure

SaveLastError(logFilename As String) As Long

Saves the last error information to an XML formatted file.

Serialize() As String

To be documented soon...

Unserialize(inStr As String) As Long

To be documented soon...