AfterCreateDirectory Event
Signals the completion of a directory creation operation.
Syntax
public event OnAfterCreateDirectoryHandler OnAfterCreateDirectory; public delegate void OnAfterCreateDirectoryHandler(object sender, FtpserverAfterCreateDirectoryEventArgs e); public class FtpserverAfterCreateDirectoryEventArgs : EventArgs { public long ConnectionID { get; } public string Directory { get; } public int OperationStatus { get; set; } }
Public Event OnAfterCreateDirectory As OnAfterCreateDirectoryHandler Public Delegate Sub OnAfterCreateDirectoryHandler(sender As Object, e As FtpserverAfterCreateDirectoryEventArgs) Public Class FtpserverAfterCreateDirectoryEventArgs 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 creation 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 |