Discuss this help topic in SecureBlackbox Forum

TElSimpleSFTPClient.CopyRemoteFile

TElSimpleSFTPClient     See also     


Filter: C#/Java  VB.NET  Pascal  C++  PHP  


Copies a remote file into the selected destination.

Declaration

[C#/Java]
    void CopyRemoteFile(string Source, string Destination, bool Overwrite);

[VB.NET]
    Sub CopyRemoteFile(ByVal Source As String, ByVal Destination As String, ByVal Overwrite As Boolean)

[Pascal]
    procedure CopyRemoteFile(Source, Destination : string; Overwrite : boolean);

[C++]
    void CopyRemoteFile(const std::string &Source, const std::string &Destination, bool Overwrite);

[PHP]
    void CopyRemoteFile(string $Source, string $Destination, bool $Overwrite)

Parameters

  • Source - file to be copied
  • Destination - where the file should be copied
  • Overwrite - specifies whether to overwrite file with the same name if it exists

Description

    Use this method to copy a remote file from one location into another.
    In case of error, EElSFTPError exception containing SFTP error code, is raised. For more information on error handling, please read the corresponding how-to article.

See also:     CopyRemoteData    

Discuss this help topic in SecureBlackbox Forum