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
SftpDeleteFile method
Called when SFTP user wants to delete file.
Type
NoneSyntax
- Basic
object.SftpDeleteFile Owner, User, RelativePath, ResolvedPath, Action
The SftpDeleteFile(object,Owner,User,RelativePath,ResolvedPath,Action) syntax has these parts:
The SftpDeleteFile(object,Owner,User,RelativePath,ResolvedPath,Action) syntax has these parts:
object | An expression evaluating to an object of type IwodSSHDNotify. |
Owner | A wodSSHDcom object. Instance of wodSSHServer that called this notification method. |
User | A SSHUser object. Reference to user who wants to delete a file. |
RelativePath | A String value. Relative path of the file, as seen by the user. |
ResolvedPath | A String value. Full path to the file 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. |
Remarks
The settings for Action are:
Constant | Value | Description |
---|---|---|
Deny | 0 | Deny execution of the action. |
Allow | 1 | Allow to execute action. |
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 tries to delete some file on your system. You can set Action = Deny if you do not wish this action to be performed, and error will be generated and sent to the user.