Skip to content
forked from flagbug/FlagFtp

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...

Notifications You must be signed in to change notification settings

pasmalin/FlagFtp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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 credentials = new NetworkCredentials("username", "password");

var client = new FtpClient(credentials);

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:

About

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...

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 100.0%