From d46f266dccec64c75516e8157ada54b7626ed557 Mon Sep 17 00:00:00 2001 From: Christopher Michael Date: Wed, 10 Oct 2007 19:04:55 +0000 Subject: [PATCH] Use mkpath, thanks Seb :) SVN revision: 32036 --- src/bin/e_fm_main.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/bin/e_fm_main.c b/src/bin/e_fm_main.c index 826a80351..f06063c8a 100644 --- a/src/bin/e_fm_main.c +++ b/src/bin/e_fm_main.c @@ -1634,16 +1634,13 @@ _e_cb_fop_trash_idler(void *data) fop = (E_Fop *)data; if (!fop) return 0; - /* Check that 'home trash' exists, create if not */ + /* Check that 'home trash' and subsequesnt dirs exists, create if not */ snprintf(buf, sizeof(buf), "%s/Trash", efreet_data_home_get()); trash_dir = evas_stringshare_add(buf); - if (!ecore_file_exists(trash_dir)) ecore_file_mkdir(trash_dir); - - /* Create required 'info' and 'files' subdirs if needed */ snprintf(buf, sizeof(buf), "%s/files", trash_dir); - if (!ecore_file_exists(buf)) ecore_file_mkdir(buf); + ecore_file_mkpath(buf); snprintf(buf, sizeof(buf), "%s/info", trash_dir); - if (!ecore_file_exists(buf)) ecore_file_mkdir(buf); + ecore_file_mkpath(buf); filename = evas_stringshare_add(strrchr(fop->src, '/')); escname = ecore_file_escape_name(filename);