Sebastian Dransfeld wrote: > Enlightenment CVS wrote: >> Log Message: >> Add FDO spec compliant trash implimentation. >> Not actually called from anywhere just yet, committing for potential review. >> + /* Check that 'home trash' 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); >> + snprintf(buf, sizeof(buf), "%s/info", trash_dir); >> + if (!ecore_file_exists(buf)) ecore_file_mkdir(buf); > > Maybe use mkpath? > > Sebastian > Will do, Thanks :)
dh ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel