continue;
}
- ms_insert_folder_start();
-
dir = g_dir_open(current_path, 0, &error);
if (error == NULL && dir != NULL) {
if (ms_insert_folder(handle, storage_id, current_path, uid) != MS_MEDIA_ERR_NONE)
while ((name = g_dir_read_name(dir))) {
ret = __msc_check_stop_status();
- if (ret != MS_MEDIA_ERR_NONE) {
- ms_insert_folder_end(uid);
+ if (ret != MS_MEDIA_ERR_NONE)
goto STOP_SCAN;
- }
if (name[0] == '.')
continue;
dir = NULL;
}
- ms_insert_folder_end(uid);
-
MS_SAFE_FREE(current_path);
}