[TIMOB-25231] Android: Ti.Filesystem.resourcesDirectory returns different list on device
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | High |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2018-05-16T22:36:28.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | Release 7.3.0 |
| Components | Android |
| Labels | n/a |
| Reporter | Feon Sua Xin Miao |
| Assignee | Gary Mathews |
| Created | 2017-09-06T18:05:54.000+0000 |
| Updated | 2018-07-04T20:09:18.000+0000 |
Description
*Reproduce Steps*
1. create a classic project
2. create
testlib folder under Resources
3. add some js files under testlib
4. add this line to app.js
var dir = Ti.Filesystem.getFile(Ti.Filesystem.resourcesDirectory);
console.log('dir.getDirectoryListing(): ', dir.getDirectoryListing());
5. run the project on device and emulator.
*Actual Result*
Emulator
["_app_props_.json","app.js","appicon.png","assets","testlib"]
Device
["appicon.png","assets"]
*Expected result*
Ti.Filesystem.resourcesDirectory directory listing should return same result.
master: https://github.com/appcelerator/titanium_mobile/pull/10031
FR Passed. Waiting for CR & merge to get enabled.
PR Merged.
*Closing ticket.* Verified fix in SDK version
7.3.0.v20180628132121Test and other information can be found at: https://github.com/appcelerator/titanium_mobile/pull/10031