Rebex
Products Downloads Buy Support Contact
Show / Hide Table of Contents

Scp.GetFile Method

Namespace: Rebex.Net
Assembly: Rebex.Sftp.dll (version 7.0.9147)

GetFile(String, String)

Downloads the remote file to the local file, overriding it if it already exists.

Declaration
public long GetFile(string remotePath, string localPath)
Parameters
Type Name Description
String remotePath

The path of the remote file.

String localPath

The path of the local file. This cannot be a directory.

Returns
Type Description
Int64

Number of bytes transferred.

GetFile(String, Stream)

Downloads the remote file to the data stream.

Declaration
public long GetFile(string remotePath, Stream outputStream)
Parameters
Type Name Description
String remotePath

The path of the remote file.

Stream outputStream

The output stream.

Returns
Type Description
Int64

Number of bytes transferred.

In This Article
  • GetFile(String, String)
  • GetFile(String, Stream)
© REBEX ČR s.r.o. Back to top
Privacy policy
Manage cookies