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

Afero Filesystem #7

Open
4 tasks done
aljo242 opened this issue Jan 16, 2022 · 0 comments
Open
4 tasks done

Afero Filesystem #7

aljo242 opened this issue Jan 16, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@aljo242
Copy link
Owner

aljo242 commented Jan 16, 2022

Summary

The Afero package would be a great replacement for the existing util/file_util package with better design and expanded functionality such as Mock Filesystems for testing.

Problem Definition

Koch is a minimal web server sdk - not a file utility module. We currently maintain two utility modules in the util folder: file_util and http_util. It makes the most sense to remove these from the project and replace them with better tested, community-used packages. In this case, we propose to replace file_util with Afero.

Proposal

The functions exposed by Afero already very nicely mirror those exposed by our util/file_util package, so this will mainly be a swap job. FS setup (create a global or scoped appFS object) will also need to be added to the app during initialization.


For Admin Use

  • Not duplicate issue
  • Appropriate labels applied
  • Appropriate contributors tagged
  • Contributor assigned/self-assigned
@aljo242 aljo242 added the enhancement New feature or request label Jan 16, 2022
@aljo242 aljo242 self-assigned this Jan 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant