Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create resource tree from FTP #127

Open
Kaliumhexacyanoferrat opened this issue Nov 3, 2020 · 0 comments
Open

Create resource tree from FTP #127

Kaliumhexacyanoferrat opened this issue Nov 3, 2020 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@Kaliumhexacyanoferrat
Copy link
Owner

As the developer of a web application, I would like to integrate resources provided by FTP, so that I can easily integrate content hosted there.

Example

var tree = ResourceTree.FromFTP(/* url, credentials */);

Host.Create()
    .Handler(Listing.From(tree))
    .Run();

var resource = Resource.FromFTP(/* url, credentials */);

Host.Create()
    .Handler(Download.From(resource))
    .Run();

Acceptance criteria

  • The functionality is implemented in an additional FTP module
  • The functionality uses a well tested, mature, maintained library to access FTP resources
  • Files and folders are fetched on-demand and the information is not cached
  • Connections are created and disposed on the fly when needed (resource tree must be thread-safe)
  • The functionality does not expose internal, client-specific types (e.g. network credentials)
  • The functionality uses an efficient checksum algorithm (e.g. modification date and file size)
  • A connection pool may be used
  • Acceptance tests have been written (either mocked or by hosting an in-memory server, if possible)
@Kaliumhexacyanoferrat Kaliumhexacyanoferrat added enhancement New feature or request good first issue Good for newcomers labels Nov 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant