SecureBlackbox 2020 .NET Edition

Questions / Feedback?

FindNext Event

An override for a directory listing entry request operation.

Syntax

public event OnFindNextHandler OnFindNext;

public delegate void OnFindNextHandler(object sender, FtpserverFindNextEventArgs e);

public class FtpserverFindNextEventArgs : EventArgs {
  public long ConnectionID { get; }
  public int OperationStatus { get; set; }
}
Public Event OnFindNext As OnFindNextHandler

Public Delegate Sub OnFindNextHandler(sender As Object, e As FtpserverFindNextEventArgs)

Public Class FtpserverFindNextEventArgs Inherits EventArgs
  Public ReadOnly Property ConnectionID As Long
  Public Property OperationStatus As Integer
End Class

Remarks

The component fires this event in a loop after calling FindInit to request one directory entry from the application.

This event only fires if Action = fraCustom was passed back from BeforeFind event. No default listing operation will be performed by the server component.

Inside the handler, pass the entry details to the server component by tuning up the ClientFileEntry object to contain the details of the requested entry, and committing those details to the component with SetClientFileEntry method.

Use the OperationStatus parameter to return the operation result back to the server. After submitting all the directory entries to the component, set OperationStatus to ostEOF to tell the components that no more entries are left.

This event will be followed by FindClose call which will let you make final adjustments to the returned code.

Set OperationStatus to one of the following values:

ostOk1
ostNoSuchFile2
ostAccessDenied3
ostWriteProtect4
ostUnsupported5
ostInvalidParameter6
ostEOF7

Copyright (c) 2022 /n software inc. - All rights reserved.
SecureBlackbox 2020 .NET Edition - Version 20.0 [Build 8165]