Enlightenment CVS committal

Author  : raster
Project : e17
Module  : apps/e

Dir     : e17/apps/e/src/bin


Modified Files:
        e_thumb_main.c 


Log Message:


mkdir only if thumb too lod/not exists

===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_thumb_main.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- e_thumb_main.c      8 Jul 2006 13:30:18 -0000       1.3
+++ e_thumb_main.c      8 Jul 2006 16:31:44 -0000       1.4
@@ -222,7 +222,7 @@
 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 @@
      }
    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 @@
    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);



Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to