fi
if [ -d $DEVICE_PHYSICAL_STORAGE_30/res ]; then
rm -rf $DEVICE_PHYSICAL_STORAGE_30/res
+ fi
+ if [ -f $DEVICE_PHYSICAL_STORAGE_30/TestText.txt ]; then
+ rm -f $DEVICE_PHYSICAL_STORAGE_30/TestText.txt
+ fi
+ if [ -d $DEVICE_PHYSICAL_STORAGE_30/Text ]; then
+ rm -rf $DEVICE_PHYSICAL_STORAGE_30/Text
fi
if [ -d $DEVICE_PHYSICAL_STORAGE_30/P1 ]; then
rm -rf $DEVICE_PHYSICAL_STORAGE_30/P1
int ITc_media_info_move_to_db_p(void)
{
START_TEST_PLAYLIST;
- AppendSlash(g_szInternalStoragePath, g_szFinalPath);
- int nRet = media_info_move_to_db(g_hAudioInfo, g_szFinalPath);
+ RemoveFileInfo("audio");
+ int nRet = media_content_scan_file(g_szAudioPath);
+ PRINT_RESULT(MEDIA_CONTENT_ERROR_NONE, nRet, "media_content_scan_file", MediaContentGetError(nRet));
+
+ nRet = media_info_move_to_db(g_hAudioInfo, g_szAudioPath);
PRINT_RESULT(MEDIA_CONTENT_ERROR_NONE, nRet, "media_info_move_to_db", MediaContentGetError(nRet));
return 0;