wodSSHServer ActiveX Control - SftpListDir Method
      
 

Description

Called when SFTP user lists directory.


Return Type

None  


Syntax

object.SftpListDir Owner, User, RelativePath, ResolvedPath, Action



The SftpListDir Method syntax has these parts:

Part Description
object An expression evaluating to an object of type wodSSHD-Notifications.
Owner A wodSSHDCom object. Instance of wodSSHServer that called this notification method.
User A SSHUser object. Reference to user who wants to list folder contents.
RelativePath A String value. Relative path of the folder, as seen by the user.
ResolvedPath A String value. Full path to the folder on local system.
Action A SSHActions enumeration, as described in settings. You should set to Allow to allow this action, or to Deny if you don't want to allow it.

Settings

The settings for Action are:

Constant Value Description
 Deny 0 Deny execution of the action.
 Allow 1 Allow to execute action.

Remarks

This method is called only if you implemented IwodSSHNotify interface in your application, and wodSSHD.Notification property has received reference to instance of your implementation.

This notification method is called when user wants to download contents of some directory. If you do not wish to give user access to the directory, you should set Action = Deny.