Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-27323

TiAPI: Add more support for changing file attributes/permissions to Filesystem API

    Details

    • Type: Bug
    • Status: Open
    • Priority: Medium
    • Resolution: Unresolved
    • Affects Version/s: Release 8.2.0
    • Fix Version/s: None
    • Component/s: Android, iOS, TiAPI
    • Labels:
    • Story Points:
      13

      Description

      We have a lot of basic file operations on Files in our API including reading some of the attributes of a File, but no real operations to change the attributes of a file:

      • atime (last access time)
      • mtime (last modified time)
      • ctime (creation time)
      • owner
      • permissions

      iOS has the ability to set many of these (ctime, mtime, permissions, owner/group):
      https://developer.apple.com/documentation/foundation/nsfilemanager/1413667-setattributes?language=objc

      Android has the ability to set mtime in the old java.io.File API. In the newer java.nio.file APIs, we can set permissions, owner, mtime directly and a more generic API for setting more (atime, ctime, mtime) here: https://developer.android.com/reference/java/nio/file/attribute/BasicFileAttributeView.html

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ahutton Alan Hutton
                Reporter:
                cwilliams Christopher Williams
              • Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Backbone Issue Sync

                  • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                    Git Source Code