Discuss this help topic in SecureBlackbox Forum

TElSftpClient.CopyRemoteFile

TElSftpClient     See also     


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


Copies a remote file into the selected destination.

Declaration

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

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

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

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

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

[Java]
    boolean 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

Return value

    True if operation was completed successfully;
    False otherwise.

Description

    Use this method to copy a remote file from one location into another.

See also:     CopyRemoteData    

Discuss this help topic in SecureBlackbox Forum