https://github.com/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...
https://github.com/flagbug/flagftp
Last synced: about 1 year ago
JSON representation
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...
- Host: GitHub
- URL: https://github.com/flagbug/flagftp
- Owner: flagbug
- Created: 2012-02-13T17:13:59.000Z (about 14 years ago)
- Default Branch: master
- Last Pushed: 2014-05-23T17:43:03.000Z (almost 12 years ago)
- Last Synced: 2025-03-17T07:44:52.859Z (about 1 year ago)
- Language: C#
- Homepage:
- Size: 330 KB
- Stars: 32
- Watchers: 6
- Forks: 22
- Open Issues: 4
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# 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*
```c#
var credential = new NetworkCredential("username", "password");
var client = new FtpClient(credential);
IEnumerable 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:**
- [FlagSync](http://github.com/flagbug/FlagSync)