AfterChangeDirectory Event
Signals the completion of a directory change operation.
Syntax
public event OnAfterChangeDirectoryHandler OnAfterChangeDirectory; public delegate void OnAfterChangeDirectoryHandler(object sender, FtpserverAfterChangeDirectoryEventArgs e); public class FtpserverAfterChangeDirectoryEventArgs : EventArgs { public long ConnectionID { get; } public string Directory { get; } public int OperationStatus { get; set; } }
Public Event OnAfterChangeDirectory As OnAfterChangeDirectoryHandler Public Delegate Sub OnAfterChangeDirectoryHandler(sender As Object, e As FtpserverAfterChangeDirectoryEventArgs) Public Class FtpserverAfterChangeDirectoryEventArgs Inherits EventArgs Public ReadOnly Property ConnectionID As Long Public ReadOnly Property Directory As String Public Property OperationStatus As Integer End Class
Remarks
The component fires this event upon completion of a directory change 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 |