commit | 2c89a4c170d05d82b81b7eba6b829aeb10aaa665 | [log] [tgz] |
---|---|---|
author | Jeff Sharkey <jsharkey@android.com> | Tue Sep 20 18:54:46 2016 -0600 |
committer | Jeff Sharkey <jsharkey@google.com> | Wed Sep 21 23:01:25 2016 +0000 |
tree | 7ac5884b228fbfb3fc93083435b132b557d3d66d | |
parent | ba0ee69a15a6207858a72f5fe8ba86953b16641e [diff] |
Rename should behave like create: avoid conflict. When we create a file that already exists, we try attaching a suffix like "(1)" to the filename to avoid the conflict. The newly added rename method should do the same, since developers may not have access to delete the conflicting file. Test: boots, rename via UI, new unit tests Bug: 31545404 Change-Id: Ie397eebb0fbf98cf079eee3bbbb6c6b7ca627d91