FTP doesn't support the notion of transferring entire directories. much less the option to /MIR
ror them a la Robocopy.
Given a local folder C:\MyFolder
and an FTP destination ftp://example.com/home/MyFolder
, I'm looking for some solid code to transfer the contents of the local folder.
- If the destination exists, the contents of the local folder is uploaded there, overwriting existing files if necessary.
- If the destination does not exist, the destination is created first.
Full mirroring (including deleting) would be nice, but not necessary.
I'm in C# / Windows. Thanks!
Edit: Libraries are fine, but I'd prefer free ones!