Back to product page
- Introduction
- Overview
- License agreement
- Getting Started
- Objects
- Enumerations
- wodSSHD
- Methods
- Properties
- Events
- Connecting
- CryptoInformation
- Disconnected
- LoginGSSAPI
- LoginPassword
- LoginPubkey
- PortBindRequest
- PortForwardConnect
- PortForwardDisconnect
- PortForwardRequest
- Received
- ServiceRequest
- ServiceStart
- SftpDeleteFile
- SftpDownloadFile
- SftpFileTransferData
- SftpListDir
- SftpListDirData
- SftpMakeDir
- SftpProgress
- SftpRemoveDir
- SftpRename
- SftpTransferComplete
- SftpUploadFile
- StateChanged
- IwodSSHDNotify
- Methods
- Connecting
- CryptoInformation
- Disconnected
- LoginGSSAPI
- LoginPassword
- LoginPubkey
- PortBindRequest
- PortForwardConnect
- PortForwardDisconnect
- PortForwardRequest
- Received
- ServiceRequest
- ServiceStart
- SftpDeleteFile
- SftpDownloadFile
- SftpFileTransferData
- SftpListDir
- SftpListDirData
- SftpMakeDir
- SftpProgress
- SftpRemoveDir
- SftpRename
- SftpTransferComplete
- SftpUploadFile
- StateChanged
- Methods
- SSHKeyPair
- SSHUser
- SSHUsers
- How to get support
- Technical information
- Fast notifications
- Error list
SftpRename event
Fires when SFTP user wants to rename file or directory.
Syntax
- Basic
Private Sub object_SftpRename(User, RelativePath, ResolvedPath, NewName, Action)
The SftpRename(object,User,RelativePath,ResolvedPath,NewName,Action) syntax has these parts:
The SftpRename(object,User,RelativePath,ResolvedPath,NewName,Action) syntax has these parts:
object | A wodSSHD object. |
User | A SSHUser object. Reference to user who wants to rename file/directory. |
RelativePath | A String value. Relative path of the file/folder, as seen by the user. |
ResolvedPath | A String value. Full path to the file/folder on local system. |
NewName | A String value. New name specified by the client. |
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. |
Remarks
The settings for Action are:
Constant | Value | Description |
---|---|---|
Deny | 0 | Deny execution of the action. |
Allow | 1 | Allow to execute action. |
This event is fired when user tries to rename some file on your system. You should decide whether you will allow the user to rename some file by using Action variable.