if (ok)
{
- if ((ok = file_data_sc_add_ci_delete(fd)))
+ ok = file_data_sc_add_ci_delete(fd);
+ if (ok)
{
ud->content_list = g_list_prepend(ud->content_list, fd);
}
work = work->next;
ok = file_util_delete_dir_empty_path(ud, lfd, level);
-
}
work = flist;
DEBUG_1("deltree child: %s", lfd->path);
- if ((ok = file_data_sc_add_ci_delete(lfd)))
+ ok = file_data_sc_add_ci_delete(lfd);
+ if (ok)
{
ud->content_list = g_list_prepend(ud->content_list, lfd);
}
g_assert(strncmp(fd->path, ud->dir_fd->path, orig_len) == 0);
- np = g_strdup_printf("%s%s", new_path, fd->path + orig_len);
+ np = g_strconcat(new_path, fd->path + orig_len, NULL);
ok = file_data_sc_add_ci_rename(fd, np);
file_data_sc_free_ci(fd);
}
}
+
return ok;
}