SecureBlackbox 2020 Kotlin Edition

Questions / Feedback?

FileOperationResult Event

Reports the result of a file transfer operation.

Syntax

public open class DefaultFtpclientEventListener : FtpclientEventListener {
  ...
  public override fun fileOperationResult(e: FtpclientFileOperationResultEvent) {}
  ...
}

public class FtpclientFileOperationResultEvent {
  val operation: Int
  val remotePath: String?
  val localPath: String?
  val errorCode: Int
  val comment: String?
  var cancel: Boolean
}

Remarks

The component fires this event from DownloadFiles and UploadFiles to notify the application of the completion of a file operation.

ErrorCode and Comment provide the details of the operation. Use the Cancel parameter to terminate the whole multi-file operation if needed.

Operations:

cffoDownloadFile0Download file

cffoUploadFile1Upload file

cffoDeleteFile2Delete file

cffoMakeDir3Make directory

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