CkoSFtpDir Objective-C Reference Documentation
Represents a remote SFTP directory listing.
@property (nonatomic, readonly, copy) NSNumber *NumFilesAndDirs;
The number of entries in this directory listing.
@property (nonatomic, readonly, copy) NSString *OriginalPath;
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.
- (CkoSFtpFile *)GetFileObject:(NSNumber *)index;
Returns the Nth entry in the directory. Indexing begins at 0.
- (NSString *)GetFilename:(NSNumber *)index;
Returns the Nth filename in the directory (indexing begins at 0).
Returns nil on failure
- (BOOL)LoadTaskResult:(CkoTask *)task;
Introduced in version 188.8.131.52
Loads the SFTP directory object from a completed asynchronous task.
Returns YES for success, NO for failure.