Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-25231

Android: Ti.Filesystem.resourcesDirectory returns different list on device

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Release 7.3.0
    • Component/s: Android
    • Labels:
      None
    • Environment:

      SDK: 6.2.0.v20170901083635

    • Story Points:
      5
    • Sprint:
      2018 Sprint 10 SDK

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                gmathews Gary Mathews
                Reporter:
                fmiao Feon Sua Xin Miao
                Reviewer:
                Joshua Quick
              • Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-11106
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Source Code