[TIMOB-25683] iOS: Address Ti.Filesystem parity issues, refactor Ti.Filesystem API's, fix broken tests
GitHub Issue | n/a |
---|---|
Type | Improvement |
Priority | Medium |
Status | Closed |
Resolution | Duplicate |
Resolution Date | 2018-05-09T10:43:50.000+0000 |
Affected Version/s | Release 7.0.1 |
Fix Version/s | n/a |
Components | iOS |
Labels | n/a |
Reporter | Hans Knöchel |
Assignee | Hans Knöchel |
Created | 2018-01-18T13:11:57.000+0000 |
Updated | 2018-08-06T17:41:11.000+0000 |
Description
There are a couple of Ti.Filesystem.File API's that are not available on iOS according to the documentation:
* copy(newPath)
* readonly
* parent
Also, some unit-tests are not working because:
* createTimestamp() and modificationTimestamp() return a different value (Date) than they should (Number)
* File-errors are muted, they should be logged on the error-level and the method should continue as before (no breaking change)
* Return types are
id
instead of their proper type (TiBlob, TiFile, NSString, NSNumber). Not a biggie, but may look confusing to contributors
While copy()
was not available so far, the properties readonly
and parent
already but haven't been documented to be available.
PR: https://github.com/appcelerator/titanium_mobile/pull/9750 Test-Case:
Resolved as part of TIMOB-26025
Closing as a duplicate. If this is in error, please reopen.