Rudimentary FTP Support

May 15
Posted by

While it was planned as a feature in the future, necessity bumped it up for me on my current project so I added some rudimentary FTP support.

Task.Publish.Ftp(x => x.Server(“ftp.server.com”)
.UserName(“username”)
.Password(“password”)
.LocalFilePath(@”c:\temp\test.txt”)
.Timeout(new TimeSpan(0,0,15,0))
.RemoteFilePath(“/html/”)
);

It only supports one file at a time and re-authenticates per request for now so uploading a folder structure is not recommended at this point. A more full fledged solution will be coming.

Filed Under: FluentBuild

2 Comments

  • Kyle Loree says:

    Ftp is pretty outdated and uses clear text. Shouldn’t a security minded programmer use something more modern and secure?

    Cheers.

  • david.woods says:

    While FTP is outdated it is still incredibly prevalent. The underlying FTP code uses some built in .NET stuff which is a bit clunky I found. I just did some reading and found that it may be possible to implement secure FTP on it but I am thinking another library may be used in the future.

    When I get to doing that I think I will make secure FTP the default and force the user to switch to an insecure mode.

Leave a Reply

Your email address will not be published. Required fields are marked *

*