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

filesystem access #3

Open
Geal opened this issue Apr 17, 2018 · 1 comment
Open

filesystem access #3

Geal opened this issue Apr 17, 2018 · 1 comment
Labels

Comments

@Geal
Copy link
Contributor

Geal commented Apr 17, 2018

I would like to implement filesystem access in my project, but it requires some thought.
We could reproduce the classic open/read/write API, but how should we expose
"mount points" for applications?
Ideally, I would like to provide FS access to the local disk, but also have a transparent
access to file storage systems like S3.

@losfair losfair added the I/O label Apr 17, 2018
@losfair
Copy link
Contributor

losfair commented Apr 18, 2018

I think we can take the "everything is a URL" concept from Redox and base all resource locations (e.g. Local paths, remote addresses, S3 storage keys) on URLs with different protocol schemes.

In this way, any resource representable as a URL can be assigned a Resource Identifier unique to the current application at the time of being opened, and things like Metadata or Stream can be further obtained from the resource, regardless of how the resource is implemented.

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

No branches or pull requests

2 participants