From 6472a3392ab99fe3635681e42b3a60895911427f Mon Sep 17 00:00:00 2001 From: Carsten Haitzler Date: Sat, 8 Jul 2006 16:31:44 +0000 Subject: [PATCH] mkdir only if thumb too lod/not exists SVN revision: 23761 --- src/bin/e_thumb_main.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/bin/e_thumb_main.c b/src/bin/e_thumb_main.c index 1aaa1e623..4df01cf11 100644 --- a/src/bin/e_thumb_main.c +++ b/src/bin/e_thumb_main.c @@ -222,7 +222,7 @@ _e_cb_timer(void *data) static void _e_thumb_generate(E_Thumb *eth) { - char buf[4096], *id, *td, *ext = NULL; + char buf[4096], dbuf[4096], *id, *td, *ext = NULL; Evas *evas = NULL, *evas_im = NULL; Ecore_Evas *ee = NULL, *ee_im = NULL; Evas_Object *im = NULL, *edje = NULL; @@ -242,9 +242,7 @@ _e_thumb_generate(E_Thumb *eth) } td[3] = 0; - snprintf(buf, sizeof(buf), "%s/%s", _thumbdir, td); - ecore_file_mkdir(buf); - + snprintf(dbuf, sizeof(dbuf), "%s/%s", _thumbdir, td); snprintf(buf, sizeof(buf), "%s/%s/%s.thm", _thumbdir, td, id + 3); free(id); free(td); @@ -253,6 +251,8 @@ _e_thumb_generate(E_Thumb *eth) mtime_thumb = ecore_file_mod_time(buf); if (mtime_thumb <= mtime_orig) { + ecore_file_mkdir(dbuf); + edje_file_cache_set(0); edje_collection_cache_set(0); ee = ecore_evas_buffer_new(1, 1);