{
gchar *path;
gchar *file;
+ gchar *old_file;
g_return_val_if_fail(item != NULL, NULL);
g_return_val_if_fail(item->path != NULL, NULL);
if (!is_dir_exist(path))
make_dir_hier(path);
file = g_strconcat(path, G_DIR_SEPARATOR_S, CACHE_FILE, NULL);
+ old_file = g_strconcat(path, G_DIR_SEPARATOR_S, OLD_CACHE_FILE, NULL);
+
+ if (!is_file_exist(file) && is_file_exist(old_file))
+ move_file(old_file, file, FALSE);
+ g_free(old_file);
g_free(path);
return file;
{
gchar *path;
gchar *file;
+ gchar *old_file;
g_return_val_if_fail(item != NULL, NULL);
g_return_val_if_fail(item->path != NULL, NULL);
if (!is_dir_exist(path))
make_dir_hier(path);
file = g_strconcat(path, G_DIR_SEPARATOR_S, MARK_FILE, NULL);
+ old_file = g_strconcat(path, G_DIR_SEPARATOR_S, OLD_MARK_FILE, NULL);
+
+ if (!is_file_exist(file) && is_file_exist(old_file))
+ move_file(old_file, file, FALSE);
+ g_free(old_file);
g_free(path);
return file;