这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@BryanJacobs
Copy link
Contributor

This exposes the last modified times of files, where available, to commands like termux-saf-ls and termux-saf-stat.

I wrote https://github.com/BryanJacobs/saf_sync/ but it's badly hampered by not being able to see file modification times. Exposing this already-available information would avoid unnecessary copies.

Example output when testing with a real Termux on an actual Android device:

  {
    "name": "myfile.bin",
    "type": "application/octet-stream",
    "uri": "content://com.android.externalstorage.documents/tree/primary%3Atest/document/primary%3Atest%2Fmyfile.bin",
    "length": 384,
    "last_modified": 2126636192
  },

…d `termux-saf-ls`

Co-authored-by: @BryanJacobs <b@q3q.us>
Co-authored-by: @agnostic-apollo  <agnosticapollo@gmail.com>
@agnostic-apollo
Copy link
Member

Thanks. It should have been added for directories as well and check for if column existed to prevent exception.

@agnostic-apollo agnostic-apollo merged commit 3f74300 into termux:master Mar 15, 2025
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