Back to product page

SftpRemoveDir event


Fires when SFTP user wants to remove directory.

Syntax

  • Basic
Private Sub object_SftpRemoveDir(User, RelativePath, ResolvedPath, Action)    
The SftpRemoveDir(object,User,RelativePath,ResolvedPath,Action) syntax has these parts:
objectA wodSSHD object.
UserA SSHUser object. Reference to user who wants to remove directory.
RelativePathA String value. Relative path of the folder, as seen by the user.
ResolvedPathA String value. Full path to the folder on local system.
ActionA 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.

Remarks

The settings for Action are:

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

This event is fired when user wants to delete some directory on your system. You may deny this action by setting Action = Deny. Even is Action is set to Allow, user may receive an error if directory is not empty.


Platforms

Windows