Chilkat_9_5_0.SFtpDir PHP ActiveX Reference Documentation


Represents a remote SFTP directory listing.

Object Creation

$obj = new COM("Chilkat_9_5_0.SFtpDir");


int NumFilesAndDirs (read-only)

The number of entries in this directory listing.

string OriginalPath (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.


Chilkat_9_5_0.SFtpFile GetFileObject(int index)

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

string GetFilename(int index)

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

Returns null on failure

bool LoadTaskResult(Chilkat_9_5_0.Task task)

Introduced in version

Loads the SFTP directory object from a completed asynchronous task.

Returns true for success, false for failure.