snprintf(new_fullpath, sizeof(new_fullpath),"%s/%s", old_dir, str);
}
+ bool ret = ivug_rename_file(old_fullpath, new_fullpath);
+ if(ret == false)
+ {
+ MSG_MAIN_ERROR("ivug_rename_file to %s failed", new_fullpath);
+ return false;
+ }
+
if(ivug_db_rename(mdata->m_handle, new_fullpath) == false)
{
MSG_MAIN_ERROR("ivug_db_rename to %s failed", new_fullpath);
return false;
}
- ivug_rename_file(old_fullpath, new_fullpath);
-
ivug_db_destroy_file_handle(mdata->m_handle);
mdata->m_handle = ivug_db_get_file_handle_from_media_id(mdata->mediaID);