SFtpDir DataFlex Reference Documentation

SFtpDir

Represents a remote SFTP directory listing.

Object Creation

Handle hoSFtpDir
Get Create(RefClass(cComChilkatSFtpDir)) to hoSFtpDir

Properties

Function ComNumFilesAndDirs Returns Integer

The number of entries in this directory listing.

Function ComOriginalPath Returns String

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 ComGetFileObject Integer index Returns cComChilkatSFtpFile

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

Function ComGetFilename Integer index Returns String

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

Returns True for success, False for failure.

Function ComLoadTaskResult cComChilkatTask task Returns 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.