sshkit v0.0.1 SSHKit.SCP.Download

Summary

Functions

Downloads a file or directory from a remote host

Functions

transfer(connection, remote, local, options \\ [])

Downloads a file or directory from a remote host.

Options

  • :verbose - let the remote scp process be verbose, default false
  • :recursive - set to true for copying directories, default false
  • :preserve - preserve timestamps, default false
  • :timeout - timeout in milliseconds, default :infinity

Example

:ok = SSHKit.SCP.Download.transfer(conn, '/home/code/sshkit', 'downloads', recursive: true)