Enable real renaming. In Android, just rescan your media files.

This commit is contained in:
Markus Birth 2020-02-07 19:29:39 +01:00
parent 928fb8f2ee
commit 03ff045f3d
Signed by: mbirth
GPG Key ID: A9928D7A098C3A9A

View File

@ -131,13 +131,13 @@ void MtpFile::Rename(MtpNode& newParent, const std::string& newName)
/* This true in place rename seems to confuse apps on the android device. The Gallery app
* for example, won't notice image files that have been renamed. So to prevent this strangeness
* real rename is disabled, and instead we make a copy of the file and delete the original
*/
if ((newParent.FolderId() == md.self.parentId) && (newParent.StorageId() == md.self.storageId))
{
// we can do a real rename
m_device.RenameFile(md.self.id, newName);
}
else
*/
{
//we have to do a copy and delete
MtpLocalFileCopy* localFile = m_cache.openFile(m_device, md.self.id);