From 300101f4707c7c0a0e29d24527a93afe0f77a2c7 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Mon, 7 Jul 2003 20:58:24 +0000 Subject: Use camel_mkdir(). 2003-07-07 Jeffrey Stedfast * providers/nntp/camel-nntp-folder.c (camel_nntp_folder_new): Use camel_mkdir(). * providers/imap/camel-imap-folder.c (camel_imap_folder_new): Use camel_mkdir(). * camel-session.c (get_storage_path): Use camel_mkdir(). * camel-store.c (camel_mkdir_hier): Removed. * camel-data-cache.c (camel_data_cache_new): Updated to use camel_mkdir(). (data_cache_path): Same. * camel-file-utils.c (camel_mkdir): Renamed and documented. (camel_file_util_safe_filename): Documented. (camel_read): Moved here from camel-io.c (camel_write): Same. * camel-io.[c,h]: Removed. * camel-uid-cache.c (camel_uid_cache_new): Use the camel-file-utils.c version of mkdir. svn path=/trunk/; revision=21753 --- camel/camel-session.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'camel/camel-session.c') diff --git a/camel/camel-session.c b/camel/camel-session.c index 1f1c7ce259..764cb30a6a 100644 --- a/camel/camel-session.c +++ b/camel/camel-session.c @@ -38,6 +38,7 @@ #include "camel-store.h" #include "camel-transport.h" #include "camel-exception.h" +#include "camel-file-utils.h" #include "camel-string-utils.h" #include "camel-url.h" #include "camel-vee-store.h" @@ -523,7 +524,7 @@ get_storage_path (CamelSession *session, CamelService *service, CamelException * if (access (path, F_OK) == 0) return path; - if (camel_mkdir_hier (path, S_IRWXU) == -1) { + if (camel_mkdir (path, S_IRWXU) == -1) { camel_exception_setv (ex, CAMEL_EXCEPTION_SYSTEM, _("Could not create directory %s:\n%s"), path, g_strerror (errno)); -- cgit