Back to product page
- Introduction
- Overview
- License agreement
- Classes
- Enumerations
- wodSFTPdll
- Create function
- Destroy function
- Methods
- Abort
- About
- AppendData
- AppendDataLen
- AppendFile
- Connect
- DeleteFile
- DeleteFiles
- Disconnect
- ExtendedCmd
- GetAttributes
- GetData
- GetDataAt
- GetDataToBuffer
- GetDataToBufferAt
- GetFile
- GetFileAt
- GetFiles
- ListAttributes
- ListDir
- ListNames
- LoadPrivateKey
- LoopFiles
- MakeDir
- PutData
- PutDataAt
- PutDataLen
- PutDataLenAt
- PutFile
- PutFileAt
- PutFiles
- RealPath
- RemoteClose
- RemoteOpen
- RemoteRead
- RemoteWrite
- RemoveDir
- Rename
- SetAttributes
- Properties
- Authentication
- Blocking
- BufferSize
- ClientName
- Compression
- Encryption
- EncryptionList
- ErrorText
- Extensions
- FIPS
- HMacList
- Hostname
- KeyExchangeList
- KeySignatureList
- LastError
- ListItem
- LocalPath
- Login
- MaxTransferRate
- MyHostname
- MyIP
- Password
- Port
- PrivateKey
- ProxyHostname
- ProxyLogin
- ProxyPassword
- ProxyPort
- ProxyType
- RemoteIdentification
- RemotePath
- Resume
- ServerErrorCode
- ServerErrorText
- State
- StateText
- Timeout
- Timezone
- TransferMode
- TransferRate
- TransferTime
- UseIPv6
- Version
- Callbacks
- How to get support
- Using callbacks
- Technical information
- Error list
AppendFile function
Appends to a remote file.
Type
A Long value. If successful, 0 is returned, otherwise error as specified hereSyntax
- C
long Sftp_AppendFile(void *Sftp, char *LocalFile, char *RemotePath);
The AppendFile(void *Sftp,char *LocalFile,char *RemotePath) syntax has these parts:
The AppendFile(void *Sftp,char *LocalFile,char *RemotePath) syntax has these parts:
void *Sftp | Handle of the created Sftp instance. |
char *LocalFile | Full path to file on local computer. |
char *RemotePath | Full path to file/directory on the server. |
Remarks
The AppendFile function will copy a file residing on the local computer to the remote server that you are connected to, by appending to the end of the remote file. During the transfer, the Progress callback will be called several times, depending on your network speed and the length of the file. When copying is complete, the Done callback will be called. AppendFile cannot be used when Resume is set to True. If an error occurs during transfer, the Done callback will be called immediately, containing an ErrorCode and a description of the error and the transfer will be aborted. This function can be initiated only when the State property is set to Connected. You cannot send a file if wodSFTP is busy doing something else. Although the LocalFile argument MUST contain the full path including the filename of the file you wish to send, you can omit the RemotePath argument. For example, you can set:RemotePath = "/tmp"
in which case wodSFTP will automatically copy it with the same name as it has locally. If you wish to specify that it is copied with another name, you must include it in the RemotePath argument. If you don't specify LocalFile or RemotePath argument, wodSFTP will use the values set in the LocalPath and RemotePath properties. No wildcards can be used with the RemotePath argument. The RFC protocol specification for SFTP does not allow them.