Discuss this help topic in SecureBlackbox Forum

TElSimpleSFTPClient.CopyRemoteFile

TElSimpleSFTPClient     See also     


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


Copies a remote file into the selected destination.

Declaration

[C#]
    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(const 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)

[Java]
    void copyRemoteFile(String Source, String Destination, boolean 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 the 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