SecureBlackbox 2020 .NET Edition

Questions / Feedback?

FileOperation Event

Marks the start of a file transfer.

Syntax

public event OnFileOperationHandler OnFileOperation;

public delegate void OnFileOperationHandler(object sender, FtpclientFileOperationEventArgs e);

public class FtpclientFileOperationEventArgs : EventArgs {
  public int Operation { get; }
  public string RemotePath { get; }
  public string LocalPath { get; }
  public bool Skip { get; set; }
  public bool Cancel { get; set; }
}
Public Event OnFileOperation As OnFileOperationHandler

Public Delegate Sub OnFileOperationHandler(sender As Object, e As FtpclientFileOperationEventArgs)

Public Class FtpclientFileOperationEventArgs Inherits EventArgs
  Public ReadOnly Property Operation As Integer
  Public ReadOnly Property RemotePath As String
  Public ReadOnly Property LocalPath As String
  Public Property Skip As Boolean
  Public Property Cancel As Boolean
End Class

Remarks

The component fires this event from DownloadFiles and UploadFiles to notify the application that the transfer of the next file in the list is about to start.

Use the Skip parameter to skip this particular file, or Cancel to cancel the whole multi-file operation.

Operations:

cffoDownloadFile0Download file

cffoUploadFile1Upload file

cffoDeleteFile2Delete file

cffoMakeDir3Make directory

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