commit | aa44476f64ed5d47b21bc313d065964b065ce918 | [log] [tgz] |
---|---|---|
author | Jeff Sharkey <jsharkey@android.com> | Tue Sep 20 18:54:46 2016 -0600 |
committer | Jeff Sharkey <jsharkey@android.com> | Wed Sep 21 16:59:24 2016 -0600 |
tree | fdd78bde21e2fac1286c31649f2ec083df4c94db | |
parent | 0676aa18ab81e8d356c5ee14b89dc26a5205ada8 [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