https://github.com/arlodotexe/owlcore.storage.fluentftp
An implementation of OwlCore.Storage that works with FTP.
https://github.com/arlodotexe/owlcore.storage.fluentftp
Last synced: about 1 month ago
JSON representation
An implementation of OwlCore.Storage that works with FTP.
- Host: GitHub
- URL: https://github.com/arlodotexe/owlcore.storage.fluentftp
- Owner: Arlodotexe
- License: mit
- Created: 2024-06-20T18:21:09.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-06-22T08:59:03.000Z (11 months ago)
- Last Synced: 2025-04-03T08:11:11.497Z (about 2 months ago)
- Language: C#
- Homepage:
- Size: 42 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# OwlCore.Storage.FluentFTP [](https://www.nuget.org/packages/OwlCore.Storage.FluentFTP)
An implementation of OwlCore.Storage that works with FTP.
## Usage
```cs
var ftpClient = new AsyncFtpClient(...);await ftpClient.ConnectAsync();
// Enumerate FTP server root folder.
await foreach (var item in ftpClient.GetListingAsyncEnumerable("/"))
{
if (item.Type == FtpObjectType.Directory)
{
// Get an instance of FtpFolder.
var folder = new FtpFolder(ftpClient, item);// Get files from the folder.
await foreach (var file in folder.GetFilesAsync())
{
// Do something with the file.
}
}
}
```## Running Tests
In order to run tests, you have to create a .runsettings file in the `OwlCore.Storage.FluentFTP.Tests` projects with the following content:
```
...
...
...
...
```
Set the properties with their respective values, then run the tests. Note that tests currently will only work on an FTP server with the permission to read and write.
## Financing
We accept donations [here](https://github.com/sponsors/Arlodotexe) and [here](https://www.patreon.com/arlodotexe), and we do not have any active bug bounties.
## Versioning
Version numbering follows the Semantic versioning approach. However, if the major version is `0`, the code is considered alpha and breaking changes may occur as a minor update.
## License
All OwlCore code is licensed under the MIT License. OwlCore is licensed under the MIT License. See the [LICENSE](./src/LICENSE.txt) file for more details.