AfterRenameFile Event
Signals the completion of a file renaming operation.
Syntax
public event OnAfterRenameFileHandler OnAfterRenameFile; public delegate void OnAfterRenameFileHandler(object sender, FtpserverAfterRenameFileEventArgs e); public class FtpserverAfterRenameFileEventArgs : EventArgs { public long ConnectionID { get; } public string OldPath { get; } public string NewPath { get; } public int OperationStatus { get; set; } }
Public Event OnAfterRenameFile As OnAfterRenameFileHandler Public Delegate Sub OnAfterRenameFileHandler(sender As Object, e As FtpserverAfterRenameFileEventArgs) Public Class FtpserverAfterRenameFileEventArgs Inherits EventArgs Public ReadOnly Property ConnectionID As Long Public ReadOnly Property OldPath As String Public ReadOnly Property NewPath As String Public Property OperationStatus As Integer End Class
Remarks
The component fires this event upon completion of a file renaming operation. Check the operation status, and alter it, if needed, through the OperationStatus parameter:
ostOk | 1 | |
ostNoSuchFile | 2 | |
ostAccessDenied | 3 | |
ostWriteProtect | 4 | |
ostUnsupported | 5 | |
ostInvalidParameter | 6 | |
ostEOF | 7 |