Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-25231] Android: Ti.Filesystem.resourcesDirectory returns different list on device

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2018-05-16T22:36:28.000+0000
Affected Version/sn/a
Fix Version/sRelease 7.3.0
ComponentsAndroid
Labelsn/a
ReporterFeon Sua Xin Miao
AssigneeGary Mathews
Created2017-09-06T18:05:54.000+0000
Updated2018-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.

Comments

  1. Gary Mathews 2018-05-08

    master: https://github.com/appcelerator/titanium_mobile/pull/10031
  2. Lokesh Choudhary 2018-05-15

    FR Passed. Waiting for CR & merge to get enabled.
  3. Lokesh Choudhary 2018-05-16

    PR Merged.
  4. Samir Mohammed 2018-07-04

    *Closing ticket.* Verified fix in SDK version 7.3.0.v20180628132121 Test and other information can be found at: https://github.com/appcelerator/titanium_mobile/pull/10031

JSON Source