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

BrowserFS Connector #306

Open
Sappharad opened this issue Feb 5, 2021 · 0 comments
Open

BrowserFS Connector #306

Sappharad opened this issue Feb 5, 2021 · 0 comments

Comments

@Sappharad
Copy link

I forked the repository and wrote a basic BrowserFS driver.
Sappharad@994f3c3

It is probably not very good and may not follow best practices, but it meets my needs. I compiled an application using Emscripten and needed a file browser to easily get files in and out of the Emscripten virtual filesystem. Since BrowserFS supports that as an endpoint and it supports other things too making it easier for me to test I wrote the connector for that instead of Emscripten directly.

BrowserFS needs to be initialized and fs needs to be installed to window.fs for this to work. Once those are set up (which you can do in your component constructor or componentDidMount) the file manager can be used with it.

I'm opening an issue for it in case you either want me to PR the code for you to use as a basis for a "correct" connector, or just to make others aware that it exists. I have no plans to develop it further beyond the features I wanted the connector for, unless I discover something broken with what I'm using it for. Please let me know if you want the code or if I should close this issue now that the connector is mentioned here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant