-
Notifications
You must be signed in to change notification settings - Fork 380
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
Support for the Afero interface #547
Comments
Since the I don’t think anything is wrong with the interface they have, but since we would have to import the package in order to implement the interface, 😬 I’m wary of pulling in Yet Another File System Interface Abstraction Interface. Instead, I would implement something similar but with our own |
How about implementing the handlers on fs.FS? That would be a read-only system, but do you think it would be appropriate to upstream? We could provide a way to wrap that with write handlers on the existing interface. |
Yes, implementing Ideally, Implementing more than what P.S. part of why I haven’t continued my work on the |
Would it make sense then to do a simpler server API as well? Seems like a lot of boilerplate when just an auth handler and FS are enough to run a full server. |
Yeah, there’s a few design ideas there that could simplify a lot. |
I'd like to run an SFTP server with virtual content, and was thinking it would be much easier to support the Afero filesystem instead of or in conjunction with the existing handler interfaces.
https://github.com/spf13/afero has the Afero interface, which is widely used in the community, including in https://github.com/fclairamb/ftpserverlib and many other projects.
Supporting Afero will also indirectly support loading the standard library's fs.FS as an SFTP server using the Afero adapter.
If we want this I can arrange for a PR.
The text was updated successfully, but these errors were encountered: