[TIMOB-4215] Android: Implement missing Titanium.Filesystem tempDirectory and applicationDirectory properties
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-01-09T10:58:02.000+0000 |
Affected Version/s | Release 1.7.0 |
Fix Version/s | Sprint 2011-31, Release 1.8.0 |
Components | Android |
Labels | n/a |
Reporter | Paul Dowsett |
Assignee | Opie Cyrus |
Created | 2011-05-25T07:18:51.000+0000 |
Updated | 2012-01-09T10:58:02.000+0000 |
Description
The KitchenSink [filesystem.js](https://github.com/appcelerator/titanium_mobile/blob/master/demos/KitchenSink/Resources/examples/filesystem.js) indicates that the tempDirectory and applicationDirectory properties have not been implemented or are not working for Titanium.Filesystem.File.
This has been tested with the above environment, with the following results observed:
(kroll$6: app://examples/filesystem.js) [1,5659404] Temp Directory :undefined
(kroll$6: app://examples/filesystem.js) [4,5659408] Application Directory :null
See TIMOB-3041 for missing applicationSupportDirectory property issue
Customer is reporting this as well. HD Ticket: [http://support.appcelerator.com/tickets/9659]
application directory is a iOS property that does not apply and actually mentioned in the Filesystem parity spec: http://wiki.appcelerator.org/display/spe/Filesystem+Behavior+Parity
If this was fixed, there is regression: I/TiAPI ( 341): (kroll$1: app://app.js) [510,3251] Ti.Filesystem.tempDirectory: undefined That's a clean 'New' project with 1.7.6.v20111114104114. I've tried two or three recent SDK versions and can't find one that works as expected.
The fix will be in 1.8.0. The fixVersion on the ticket says where the fix will be.
Tested on Ti Studio 1.0.7.201112080131 Ti Mob SDK 1.8.0.1.v20111209011840 OSX Lion Nexus S OS 2.3.6 Expected behavior of a tempDirectory property is shown
Verified with the official release of 1.8.0.1: applicationDirectory: null (as expected, as it's an iOS-only feature. See linked ticket) tempDirectory returns path (as expected)
Open to update label