[TIMOB-18108] Deprecate Ti.Filesystem.File.rename, or make it the same as Ti.Filesystem.File.move
GitHub Issue | n/a |
---|---|
Type | Improvement |
Priority | None |
Status | Open |
Resolution | Unresolved |
Affected Version/s | Release 3.4.1 |
Fix Version/s | n/a |
Components | TiAPI |
Labels | n/a |
Reporter | Tony Lukasavage |
Assignee | Unknown |
Created | 2014-11-29T15:09:27.000+0000 |
Updated | 2018-02-28T19:54:53.000+0000 |
Description
According to the documentation, the *Deprecate and eventually remove Ti.Filesystem.File.rename.* All it is is an under-powered, error-prone version of
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.
I would propose one of two solutions:
No comments