Topic "Upload File - Append To Existing File"

Author Message
Yellow
[View user's profile]

Joined: 2013-02-20
Posts: 5
Hi

Is it possible to upload MyFile.txt to a server and if the file exists on the FTP server, append the content of the local file to the existing file on the FTP server?

Cheers
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
This is not supported with .NET assembly yet. But you can easily add it as the assembly is open source.
See similar example:
https://winscp.net/forum/viewtopic.php?t=12452
_________________
Martin Prikryl
Yellow
[View user's profile]

Joined: 2013-02-20
Posts: 5
That's great, thanks very much.
JeffClay
[View user's profile]

Joined: 2013-07-31
Posts: 5
Location: US
You could always use winscp.net to see if the file exists, if it does then download it locally and use streamwriter or something to append the text and put the file back on the server.
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License