scpDownloadDirectory method

Future<void> scpDownloadDirectory(
  1. String remoteDirectoryPath,
  2. String fullLocalDirectoryPathTarget, {
  3. Allocator allocator = calloc,
  4. void callbackStats(
    1. int totalBytes,
    2. int loaded,
    3. int currentFileSize,
    4. int countDirectory,
    5. int countFiles,
    )?,
  5. void printLog(
    1. Object? obj
    )?,
  6. bool cancelCallback()?,
  7. bool isThrowException = false,
  8. bool updateStatsOnFileEnd = true,
  9. bool dontStopIfFileException = false,
})

fullLocalDirectoryPathTarget example c:\downloads remoteDirectoryPath example /var/www this function work only if remote is linux debian like sytem

Implementation

Future<void> scpDownloadDirectory(
  String remoteDirectoryPath,
  String fullLocalDirectoryPathTarget, {
  Allocator allocator = calloc,
  void Function(int totalBytes, int loaded, int currentFileSize,
          int countDirectory, int countFiles)?
      callbackStats,
  void Function(Object? obj)? printLog,
  bool Function()? cancelCallback,
  bool isThrowException = false,
  bool updateStatsOnFileEnd = true,
  bool dontStopIfFileException = false,
}) async {
  await libsshBinding.scpDownloadDirectory(
    mySshSession,
    remoteDirectoryPath,
    fullLocalDirectoryPathTarget,
    allocator: allocator,
    callbackStats: callbackStats,
    printLog: printLog,
    isThrowException: isThrowException,
    cancelCallback: cancelCallback,
    updateStatsOnFileEnd: updateStatsOnFileEnd,
    dontStopIfFileException: dontStopIfFileException,
  );
}