-
Notifications
You must be signed in to change notification settings - Fork 428
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
Request termux-saf-realpath
and termux-saf-realname
feature
#498
Comments
termux-saf-realpath
and termux-saf-realname
feature
You can do that with termux-saf-stat. I recommend
Do you mean the path of the real file? There may not be a real file involved, only for the MediaStore, which you can already access with |
Hi. Thanks a lot for the answer in For I, personally, highly prefer such way Termux interact with user (in GUI) to specify which file/folder in shared storage to work on. So SAFAPI and StorageGetAPI can do more than just granting URI access, but also offer the functionality "Open ..." resembling many desktop GUI applications (this is still a gap in Termux. It can't be done with Note that |
I really appreciate the new SAF API. On top of the current utils, it would be good to have
realpath
equivalent and get name of the file.Feature description
termux-saf-realpath
returns the URI in path. If it is online storage (e.g. GDrive), then perhaps return a empty stringtermux-saf-realname
returns to name of the fileReference implementation
Nasib's answer in this stackoverflow post seems promising to handle media files.
Many more stackoverflow posts should help.
I may make pull requests if it's preferred and when I have time to write and test the codes. Thanks!
The text was updated successfully, but these errors were encountered: