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

Cannot access files in Resources directory with 5.2.x

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: Release 5.1.0, Release 5.2.0
    • Fix Version/s: Release 5.1.0
    • Component/s: iOS, Tooling
    • Labels:
    • Story Points:
      0
    • Sprint:
      2015 Sprint 22 SDK

      Description

      Environment

      Operating System
        Name                        = Mac OS X
        Version                     = 10.11.1
        Architecture                = 64bit
        # CPUs                      = 8
        Memory                      = 17179869184
      Node.js
        Node.js Version             = 0.10.38
        npm Version                 = 1.4.28
      Titanium CLI
        CLI Version                 = 5.0.5
      Titanium SDK
        SDK Version                 = 5.2.0.v20151014151229
        SDK Path                    = /Volumes/Data/Users/sebastian/Library/Application Support/Titanium/mobilesdk/osx/5.0.2.GA
        Target Platform             = iphone
      

      Example

      var self = Ti.UI.createWindow({
          title: 'file test',
          backgroundColor: '#fff'
      });
       
      var navController = Ti.UI.iOS.createNavigationWindow({
          window: self
      });
       
      var testFile = Ti.Filesystem.getFile(Ti.Filesystem.getResourcesDirectory(), 'KS_nav_ui.png');
      alert(testFile.getSize());
       
      navController.open();
      

      With SDK 5.0.2.GA the alert gives me 748, with 5.1.x and 5.2.x it alerts 0.

      There are several problems, not getting files out of the resources directory. Also getting directories with getFile for getDirectoryListing() does not work.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                fmiao Feon Sua Xin Miao
                Reporter:
                benutzername Sebastian Klaus
                Reviewer:
                Chris Barber
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Integration