{ "id": "166440", "key": "TIMOB-24458", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2017-03-07T19:13:10.000+0000", "created": "2017-03-06T17:09:01.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [], "versions": [ { "id": "18928", "name": "Release 6.0.2", "archived": false, "released": true, "releaseDate": "2017-02-27" } ], "issuelinks": [], "assignee": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-07T19:13:10.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "Hello, I am using the below code for listing the conponents in resource directory. \r\n{code}\r\nvar win = Titanium.UI.createWindow({\r\n layout : 'vertical'\r\n});\r\nvar directory = Ti.Filesystem.getFile(Ti.Filesystem.getResourcesDirectory());\r\nvar files = directory.getDirectoryListing();\r\nconsole.log(files);\r\nwin.open();\r\n{code}\r\n\r\nI get the below response in iOS \r\n{code}\r\n[INFO] (\r\n[INFO] \"_app_props_.json\",\r\n[INFO] \"_CodeSignature\",\r\n[INFO] \"app.js\",\r\n[INFO] \"AppIcon29x29@2x.png\",\r\n[INFO] \"AppIcon29x29@2x~ipad.png\",\r\n[INFO] \"AppIcon29x29@3x.png\",\r\n[INFO] \"AppIcon29x29~ipad.png\",\r\n[INFO] \"AppIcon40x40@2x.png\",\r\n[INFO] \"AppIcon40x40@2x~ipad.png\",\r\n[INFO] \"AppIcon40x40@3x.png\",\r\n[INFO] \"AppIcon40x40~ipad.png\",\r\n[INFO] \"AppIcon60x60@2x.png\",\r\n[INFO] \"AppIcon60x60@3x.png\",\r\n[INFO] \"AppIcon76x76@2x~ipad.png\",\r\n[INFO] \"AppIcon76x76~ipad.png\",\r\n[INFO] \"AppIcon83.5x83.5@2x~ipad.png\",\r\n[INFO] \"Assets.car\",\r\n[INFO] \"Info.plist\",\r\n[INFO] \"LaunchScreen.storyboardc\",\r\n[INFO] modules,\r\n[INFO] PkgInfo,\r\n[INFO] sha157,\r\n[INFO] \"ti.cloud\"\r\n[INFO] )\r\n{code}\r\n\r\nI don't see assets, android, image folder in my resource directory in the log. see the screenshot of my resource directory. In Android, only the android folder is missing. Here is Android log \r\n{code}\r\n[INFO] : [\"DefaultIcon.png\",\"KS_nav_ui.png\",\"appicon.png\",\"assets\",\"image\",\"ti.cloud\"]\r\n{code}\r\nThanks.", "attachment": [ { "id": "61784", "filename": "Screen Shot 2017-03-06 at 10.32.51 PM.png", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2017-03-06T17:12:07.000+0000", "size": 15939, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS: getDirectoryListing() does not show all the folders in resources directory. ", "creator": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "subtasks": [], "reporter": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "environment": null, "comment": { "comments": [ { "id": "409371", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "The images (in assets/ and image/ are inside the iOS assets-catalog (encrypted in Assets.car for app-thinning), the android folder is (of course) not copied to the iOS build since it's Android-only. To access the images, use {{Ti.Filesystem.getAsset('assets/myImage.png')}. This issue is invalid.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-03-06T19:27:04.000+0000", "updated": "2017-03-06T19:34:33.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }