{ "id": "140692", "key": "TIMOB-18108", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "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": "2014-11-29T15:09:27.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [], "versions": [ { "id": "16676", "description": "Release 3.4.1", "name": "Release 3.4.1", "archived": false, "released": true, "releaseDate": "2014-11-14" } ], "issuelinks": [], "assignee": null, "updated": "2018-02-28T19:54:53.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": "10224", "name": "TiAPI", "description": "This component is used for cross-platform API work. Specifications are most likely to use this component." } ], "description": "According to the documentation, the {{Ti.Filesystem.File.rename()}} function does exactly the same thing as the {{Ti.Filesystem.File.move()}} function, except that {{rename}} has the added stipulation that the file must still reside in the current directory after the rename. Considering that pretty much every system in the world that implements {{rename}} and {{move}} gives them the exact same functionality, our implementation is confusing and prone to unnecessary mistakes.\r\n\r\nI would propose one of two solutions:\r\n\r\n# *Deprecate and eventually remove Ti.Filesystem.File.rename.* All it is is an under-powered, error-prone version of {{move}}. There's literally no reason for it functionality-wise. We should phase it out and remove it entirely.\r\n# *Give Ti.Filesystem.File.rename the same exact functionality as Ti.Filesystem.File.move.* This would keep both functions, breaking no existing code, but would have them both behave exactly the same way, meeting the world's expectations of what these functions do. It leaves us with redundant APIs, but it seems making no breaking changes and removing this confusing difference between the 2 might be the best choice.", "attachment": [], "flagged": false, "summary": "Deprecate Ti.Filesystem.File.rename, or make it the same as Ti.Filesystem.File.move", "creator": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [], "maxResults": 0, "total": 0, "startAt": 0 } } }