comparison src/search.c @ 1148:95860439070b

Replace cache_ensure_dir_exists() by new recursive_mkdir_if_not_exists().
author zas_
date Sat, 15 Nov 2008 20:01:25 +0000
parents 3a7af6a8cd5f
children f6449c17306b
comparison
equal deleted inserted replaced
1147:4220d5536ad9 1148:95860439070b
1538 const gchar *path; 1538 const gchar *path;
1539 mode_t mode = 0755; 1539 mode_t mode = 0755;
1540 1540
1541 path = image_loader_get_fd(sd->img_loader)->path; 1541 path = image_loader_get_fd(sd->img_loader)->path;
1542 base = cache_get_location(CACHE_TYPE_SIM, path, FALSE, &mode); 1542 base = cache_get_location(CACHE_TYPE_SIM, path, FALSE, &mode);
1543 if (cache_ensure_dir_exists(base, mode)) 1543 if (recursive_mkdir_if_not_exists(base, mode))
1544 { 1544 {
1545 g_free(cd->path); 1545 g_free(cd->path);
1546 cd->path = cache_get_location(CACHE_TYPE_SIM, path, TRUE, NULL); 1546 cd->path = cache_get_location(CACHE_TYPE_SIM, path, TRUE, NULL);
1547 if (cache_sim_data_save(cd)) 1547 if (cache_sim_data_save(cd))
1548 { 1548 {