Skip to content
FlagFtp is a FTP library for .NET, that supports various operations, such as retrieving file lists, write and read from/to files, retrieving file and directory infos, etc...
C#
Latest commit 8080e70 May 23, 2014 @flagbug Fix the sample code
Fixes #4
Failed to load latest commit information.
FlagFtp Added .gitattributes Oct 1, 2012
Releases Release of version 0.1.3 Jul 23, 2012
.gitattributes Added .gitattributes Oct 1, 2012
.gitignore Replaced .hgignore with .gitignore Feb 13, 2012
readme.md Fix the sample code May 23, 2014

readme.md

FlagFtp

Overview

FlagFtp is an FTP library for .NET, that supports various operations, such as retrieving file lists, write and read from/to files, retrieving file and directory infos, etc...

NuGet

FlagConsole is available via NuGet! http://www.nuget.org/List/Packages/FlagFtp

Example code

Retrieving a file list

var credential = new NetworkCredential("username", "password");

var client = new FtpClient(credential);

IEnumerable<FtpFileInfo> files = client.GetFiles(new Uri("ftp://yourserver/yourdirectory/"));

foreach(var file in files)
{
    Console.WriteLine(file.Name);
    Console.WriteLine(file.Length);
    Console.WriteLine(file.LastWriteTime);
}

Projects that use this library:

Something went wrong with that request. Please try again.