SFtpDir Xojo Plugin Reference Documentation

SFtpDir

Represents a remote SFTP directory listing.

Object Creation

Dim sFtpDir As New Chilkat.SFtpDir

Properties

NumFilesAndDirs As Int32 (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

Function GetFilename(index As Int32) As String

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

Returns Nil on failure

Function GetFileObject(index As Int32) As Chilkat.SFtpFile

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

Returns Nil on failure

Function LoadTaskResult(task As Chilkat.Task) As Boolean

Introduced in version 9.5.0.52

Loads the SFTP directory object from a completed asynchronous task.

Returns True for success, False for failure.