SFTP.ListItemsEvent Event

Fires when wodSFTP.NET has information about file or directory list.

[Visual Basic]
Public ListItemsEvent As WeOnlyDo.Client.SFTP.ListItemsDelegate
[C#]
public ListItemsDelegate ListItemsEvent;

Remarks

ListItems event will be fired as a result of ListDir and RealPath methods. FileInfo argument will contain:

1. For ListDir there will be complete description of all files in requested directory, as seen on UNIX systems. Each file will be in separate line, using CRLF sequence as a separator

2. For RealPath argument will contain full path to a file/directory pointed by requested symbolic link

 

It is possible that ListItems event fire more than once for a directory. This will happen if directory contains many files. If you're filling some structures from this data, make sure you append to the structure, not overwrite it. When directory listing is complete, Done event will be fired.

 

See Also

SFTP Class | SFTP Members | WeOnlyDo.Client Namespace