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

WIP: Filesystem abstraction #227

Draft
wants to merge 13 commits into
base: develop
Choose a base branch
from

Conversation

Masterchef365
Copy link

Here is a rough implementation of an abstraction over the file system and other OS functions (ex. user directories). There is a trait FileSystem, a trait object of which can be passed to FileDialog as a way of overriding the default behavior. As a way of testing the API, I threw together a browser demo which allows one to upload a ZIP file and browse its contents: https://masterchef365.github.io/file-dialog-on-web/

More to come, as I work out the rest of the implementation details. Mostly wanted to get some eyes on the API choices I've made here (is Arc the right interface?).

@fluxxcode
Copy link
Owner

This already looks very good! Thanks for working on this.

Yep, we have to use Arc to keep the file dialog thread safe.

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

Successfully merging this pull request may close these issues.

2 participants