{ "id": "105119", "key": "TIMOB-13440", "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": null, "resolutiondate": null, "created": "2012-11-16T11:28:17.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [ { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" } ], "issuelinks": [], "assignee": null, "updated": "2018-02-28T20:03:46.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "12305", "name": "Core", "description": "Central component of the Platform (outside of Tooling, or platform specific implementation details)" } ], "description": "Titanium.Filesystem.File's setter method setHidden(), throws exception (setHidden method not found) in Android platform and is not hiding the files in iOS.\r\n\r\n*Provided test case*\r\n{code}\r\nvar rootDirectoryPath = Titanium.Filesystem.getExternalStorageDirectory();\r\nvar directoryPath = String.format('%s%s', rootDirectoryPath, 'ImagesFolder');\r\nvar directory = Titanium.Filesystem.getFile(directoryPath);\r\nif (!directory.exists()) {\r\n directory.createDirectory();\r\n}\r\nvar imagePath = String.format('%s%s%s', directoryPath, fileSeperator, 'image.png');\r\nvar file = Titanium.Filesystem.getFile(imagePath);\r\nfile.write(image);\r\nfile.setHidden(true);\r\n{code}\r\n\r\n*Simplified test case*\r\n{code}\r\nvar file = Titanium.Filesystem.getFile(Ti.Filesystem.resourcesDirectory, '', 'KS_nav_ui.png');\r\nfile.setHidden(true);\r\n{code}", "attachment": [], "flagged": false, "summary": "TiAPI: Titanium.Filesystem.File setHidden() throws an exception", "creator": { "name": "ankitthakur", "key": "ankitthakur", "displayName": "Ankit Thakur", "active": true, "timeZone": "Asia/Kolkata" }, "subtasks": [], "reporter": { "name": "ankitthakur", "key": "ankitthakur", "displayName": "Ankit Thakur", "active": true, "timeZone": "Asia/Kolkata" }, "environment": null, "comment": { "comments": [ { "id": "246167", "author": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested and confirmed on Samsung Galaxy S3 Android 4.0.4 with Ti SDK 3.1 CI. Throws an exception; iOS doesn't. Not tested \"hidden\" behavior, but at the very least the documentation needs updating.", "updateAuthor": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-06T18:52:40.000+0000", "updated": "2013-04-06T18:52:40.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }