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

Can we change the methods to take folder/file paths rather than URIs? #138

Open
heygarvish opened this issue Jun 27, 2023 · 3 comments
Open
Labels
bug Something isn't working

Comments

@heygarvish
Copy link

If we can't change then what are the possible ways to convert folder/file paths to URIs?

It's worth it because I guess paths are easy to deal with (correct me if I'm wrong).

Thanks by the way. Your plugin saved my day. Just wanna tell you that you're doing awesome work by keeping this repository active. You inspire us all ❤️

@heygarvish heygarvish added the bug Something isn't working label Jun 27, 2023
@alexrintt
Copy link
Owner

Currently there is no way to convert path to URIs and vice-versa.

I plan to add some improvements in the future to handle paths AND uris to make the library easier to use (so you'll not need to worry about URIs, for you will be just File/Directories), but right know there is none :(

I've been busy lately but thanks to bring my attention to this, I'll check it out soon and release with other changes I've been working.

Thanks!

@heygarvish
Copy link
Author

The "Saf" flutter plugin has kind of managed to do so. I'm wondering how?

@alexrintt
Copy link
Owner

[saf] is actually a fork of [shared_storage] that hides the URI part. But they are also handling with URIs, they just hide it inside the Saf class, see https://github.com/ivehement/saf/blob/master/lib/src/storage_access_framework/saf.dart.

But I didn't read the whole code, I need to take better look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants