Back to product page

ListItemsEvent event


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

Syntax

  • C#
  • VB.NET
delegate void ListItemsDelegate(object Sender, ListItemsArgs Args);
The ListItemsEvent(Args.FileInfo) syntax has these parts:
Args.FileInfoString. One or more lines of text representing one or more files.

Delegate Sub ListItemsDelegate(ByVal Sender As Object, ByVal Args As WeOnlyDo.Client.SFTP.ListItemsArgs)
The ListItemsEvent(Args.FileInfo) syntax has these parts:
Args.FileInfoString. One or more lines of text representing one or more files.

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.

Platforms

Windows