SFtpDir C# WinRT Reference Documentation


Represents a remote SFTP directory listing.

Object Creation

Chilkat.SFtpDir obj = new Chilkat.SFtpDir();


public int NumFilesAndDirs {get; }

The number of entries in this directory listing.

public string OriginalPath {get; }

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.


public SFtpFile GetFileObject(int index);

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

public string GetFilename(int index);

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

Returns null on failure