{ "id": "84888", "key": "TIMOB-7185", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "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": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2016-11-08T12:10:47.000+0000", "created": "2012-01-13T16:15:28.000+0000", "priority": { "name": "Trivial", "id": "5" }, "labels": [ "parity" ], "versions": [ { "id": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" } ], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-23T22:31:45.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": "10224", "name": "TiAPI", "description": "This component is used for cross-platform API work. Specifications are most likely to use this component." } ], "description": "For iOS (at least) we need to add a property to access {{Library/Private Documents}} which is the new location of database files and is generally useful for material which should not necessarily be backed up to iCloud (Apple has extensive docs about what which directories should be used for and the backup schemes for each).\r\n\r\nUnsure if this makes sense for Android.\r\n\r\nAny fix should include a new drillbit check for the API point and a sensible per-platform return value.", "attachment": [], "flagged": false, "summary": "TI API: Add Ti.Filesystem.privateDocuments", "creator": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "179765", "author": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "body": "For cross-platform use, how about a Ti.Filesystem *applicationDatabaseDirectory* property (similar to applicationDataDirectory), which would return the location of where an installed database file _will_ live? For Android and iOS.", "updateAuthor": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "created": "2012-01-18T13:24:03.000+0000", "updated": "2012-01-18T13:24:03.000+0000" }, { "id": "183740", "author": { "name": "sfeather", "key": "sfeather", "displayName": "Stephen Feather", "active": true, "timeZone": "America/New_York" }, "body": "Private Documents is not a database specific repository. The name of a new property should reflect that. One specific for the database location would be useful when reading code though. We also need a LibraryCaches as well. ", "updateAuthor": { "name": "sfeather", "key": "sfeather", "displayName": "Stephen Feather", "active": true, "timeZone": "America/New_York" }, "created": "2012-02-19T19:39:06.000+0000", "updated": "2012-02-19T19:40:46.000+0000" }, { "id": "400579", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "As this directory is not cross-platform and developers can access it the following way on iOS, this is not a feature the SDK should expose:\r\n{code:javascript}\r\nfunction privateDocumentsDirectory(){\r\n \r\n Ti.API.info('We need to open a file object to get our directory info');\r\n var testFile = Ti.Filesystem.getFile(Ti.Filesystem.applicationDataDirectory);\r\n Ti.API.info('Now we remove the Documents folder reference');\r\n var privateDir = testFile.nativePath.replace('Documents/','');\r\n Ti.API.info('This is our base App Directory =' + privateDir);\r\n Ti.API.info('Now we add the Private Documents Directory');\r\n privateDir+='Library/Private%20Documents/';\r\n Ti.API.info('Our new path is ' + privateDir);\r\n return privateDir;\r\n};\r\n{code}\r\n[Source|https://bencoding.com/2011/12/29/titanium-reading-files-in-the-private-documents-directory/] (by [~ben.bahrenburg@gmail.com])", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-11-08T12:10:47.000+0000", "updated": "2016-11-08T12:10:47.000+0000" }, { "id": "415444", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as Won't Fix with reference to the above comments.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-23T22:31:45.000+0000", "updated": "2017-03-23T22:31:45.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }