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

Make filePath (String) available #206

Closed
Nailik opened this issue Aug 8, 2023 · 2 comments · Fixed by #213
Closed

Make filePath (String) available #206

Nailik opened this issue Aug 8, 2023 · 2 comments · Fixed by #213

Comments

@Nailik
Copy link

Nailik commented Aug 8, 2023

Currently it's not possible to read the actual Path as Text from the Path object.

Use cases are mostly native:

  • sharing file
  • playing with android media player (requires uri from file path)
  • etc.
@fzhinkin
Copy link
Collaborator

I don't mind exposing the string w/ a path, but I'd also need to warn that kotlinx.io.files is experimental and subject to change or removal.

@Nailik
Copy link
Author

Nailik commented Aug 10, 2023

@fzhinkin well it would make it easier because you could use it when parsing json data or as i said when you want to perform native actions and use the Path class commonly. This way you could then use on android the java File class and do whatever needs to be done instead of holding String and when necessary making a Path object etc etc.

@fzhinkin fzhinkin linked a pull request Aug 21, 2023 that will close this issue
@fzhinkin fzhinkin added the fs label Nov 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants