From 2e07c0493e76f16b021d53280ee4fa49586bde46 Mon Sep 17 00:00:00 2001 From: Dees Troy Date: Thu, 4 Sep 2014 15:00:57 +0000 Subject: MTP Fix rename in Windows Change-Id: Ieef2fc16aac1da3d03908cfb285895954b42a14a --- mtp/MtpStorage.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mtp/MtpStorage.cpp') 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()); -- cgit v1.2.3