IP*Works! SSH V9 - Online Help
IP*Works! SSH V9
Questions / Feedback?

DirList Event

Fired when a directory entry is received.

Syntax

[VB.NET]
Public Event OnDirList As OnDirListHandler
[C#]
public event OnDirListHandler OnDirList;

public delegate void OnDirListHandler(object sender, SftpDirListEventArgs e);

class SftpDirListEventArgs : EventArgs {
  string DirEntry {get;}
  string FileName {get;}
  bool IsDir {get;}
  long FileSize {get;}
  string FileTime {get;}
}

Remarks

The DirList events are fired when a directory listing is received as a response to a ListDirectory.

The StartTransfer and EndTransfer events mark the beginning and end of the event stream.

The DirEntry parameter contains the filename when ListDirectory is called.

The component tries to fill out the FileName, IsDir, FileSize, and FileTime parameters when calling the ListDirectory method.

The format of the FileTime parameter returned by the component can be controlled through the FileTimeFormat configuration setting. If no format is specified, the component will format the date dependent on the year. If the filetime is in the same year, it will be formatted as "MMM dd HH:mm", otherwise it will be formatted as "MMM dd yyyy".

 
 
Copyright (c) 2017 /n software inc. - All rights reserved.
Build 9.0.6240.0