Appending files |
You can append data to a remote file using any of the Upload methods that take a second boolean argument. Rather than replace the remote file, this will append the data that you are uploading to the remote file. All files with relative paths will be uploaded from your current local directory to your current remote directory.
Example
[C#]
// the source file
FileInfo src = new FileInfo("c:\\tmp\\logs.txt");
// destination file on server
string dst = "all-logs.txt";
// append source data to destination file
myFtp.Upload(src, dst, true);
[Visual Basic]
' the source file
Dim src As System.IO.FileInfo = New System.IO.FileInfo("c:\tmp\logs.txt")
' destination file on server
Dim dst As String = "all-logs.txt"
' append source data to destination file
myFtp.Upload(src, dst, True)
See also