[TIMOB-27323] TiAPI: Add more support for changing file attributes/permissions to Filesystem API
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | Medium |
| Status | Open |
| Resolution | Unresolved |
| Affected Version/s | Release 8.2.0 |
| Fix Version/s | n/a |
| Components | Android, iOS, TiAPI |
| Labels | engSchedule |
| Reporter | Christopher Williams |
| Assignee | Abir Mukherjee |
| Created | 2019-08-08T17:42:23.000+0000 |
| Updated | 2020-11-23T18:02:43.000+0000 |
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
No comments