summaryrefslogtreecommitdiffstats
path: root/mtp/MtpStorage.cpp
diff options
context:
space:
mode:
authorDees Troy <dees_troy@teamw.in>2014-09-04 17:00:57 +0200
committerDees Troy <dees_troy@teamw.in>2014-09-04 17:01:30 +0200
commit2e07c0493e76f16b021d53280ee4fa49586bde46 (patch)
treeab58df42cfee6ebda5d5f70af924d66679bd1f15 /mtp/MtpStorage.cpp
parentMTP Fix property list for multiple storage devices (diff)
downloadandroid_bootable_recovery-2e07c0493e76f16b021d53280ee4fa49586bde46.tar
android_bootable_recovery-2e07c0493e76f16b021d53280ee4fa49586bde46.tar.gz
android_bootable_recovery-2e07c0493e76f16b021d53280ee4fa49586bde46.tar.bz2
android_bootable_recovery-2e07c0493e76f16b021d53280ee4fa49586bde46.tar.lz
android_bootable_recovery-2e07c0493e76f16b021d53280ee4fa49586bde46.tar.xz
android_bootable_recovery-2e07c0493e76f16b021d53280ee4fa49586bde46.tar.zst
android_bootable_recovery-2e07c0493e76f16b021d53280ee4fa49586bde46.zip
Diffstat (limited to 'mtp/MtpStorage.cpp')
-rwxr-xr-xmtp/MtpStorage.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/mtp/MtpStorage.cpp b/mtp/MtpStorage.cpp
index 4c1f45642..7531ac44d 100755
--- a/mtp/MtpStorage.cpp
+++ b/mtp/MtpStorage.cpp
@@ -644,7 +644,7 @@ int MtpStorage::renameObject(MtpObjectHandle handle, std::string newName) {
std::string newFullName = parentdir + "/" + newName;
MTPD("old: '%s', new: '%s'\n", oldName.c_str(), newFullName.c_str());
if (rename(oldName.c_str(), newFullName.c_str()) == 0) {
- node->setPath(newFullName);
+ node->rename(newFullName);
return 0;
} else {
MTPE("MtpStorage::renameObject failed, handle: %d, new name: '%s'\n", handle, newName.c_str());