aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2003-07-08 04:58:24 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2003-07-08 04:58:24 +0800
commit300101f4707c7c0a0e29d24527a93afe0f77a2c7 (patch)
treeaac6a6bde47fb918f72abdac77d6e33f3759a6c4 /camel/providers
parent393aafe6b21dfc482b41a08297292ff0e8b05037 (diff)
downloadgsoc2013-evolution-300101f4707c7c0a0e29d24527a93afe0f77a2c7.tar
gsoc2013-evolution-300101f4707c7c0a0e29d24527a93afe0f77a2c7.tar.gz
gsoc2013-evolution-300101f4707c7c0a0e29d24527a93afe0f77a2c7.tar.bz2
gsoc2013-evolution-300101f4707c7c0a0e29d24527a93afe0f77a2c7.tar.lz
gsoc2013-evolution-300101f4707c7c0a0e29d24527a93afe0f77a2c7.tar.xz
gsoc2013-evolution-300101f4707c7c0a0e29d24527a93afe0f77a2c7.tar.zst
gsoc2013-evolution-300101f4707c7c0a0e29d24527a93afe0f77a2c7.zip
Use camel_mkdir().
2003-07-07 Jeffrey Stedfast <fejj@ximian.com> * 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
Diffstat (limited to 'camel/providers')
-rw-r--r--camel/providers/imap/camel-imap-folder.c3
-rw-r--r--camel/providers/imap/camel-imap-store.c2
-rw-r--r--camel/providers/nntp/camel-nntp-folder.c4
3 files changed, 5 insertions, 4 deletions
diff --git a/camel/providers/imap/camel-imap-folder.c b/camel/providers/imap/camel-imap-folder.c
index 860ce7026f..07c2a3cf57 100644
--- a/camel/providers/imap/camel-imap-folder.c
+++ b/camel/providers/imap/camel-imap-folder.c
@@ -68,6 +68,7 @@
#include "camel-stream.h"
#include "camel-private.h"
#include "camel-string-utils.h"
+#include "camel-file-utils.h"
#define d(x)
@@ -217,7 +218,7 @@ camel_imap_folder_new (CamelStore *parent, const char *folder_name,
const char *short_name;
char *summary_file;
- if (camel_mkdir_hier (folder_dir, S_IRWXU) != 0) {
+ if (camel_mkdir (folder_dir, S_IRWXU) != 0) {
camel_exception_setv (ex, CAMEL_EXCEPTION_SYSTEM,
_("Could not create directory %s: %s"),
folder_dir, g_strerror (errno));
diff --git a/camel/providers/imap/camel-imap-store.c b/camel/providers/imap/camel-imap-store.c
index 5e63a11cad..bd1daaf0a2 100644
--- a/camel/providers/imap/camel-imap-store.c
+++ b/camel/providers/imap/camel-imap-store.c
@@ -6,7 +6,7 @@
* Dan Winship <danw@ximian.com>
* Jeffrey Stedfast <fejj@ximian.com>
*
- * Copyright 2000, 2001 Ximian, Inc.
+ * Copyright 2000, 2003 Ximian, Inc.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of version 2 of the GNU General Public
diff --git a/camel/providers/nntp/camel-nntp-folder.c b/camel/providers/nntp/camel-nntp-folder.c
index cfe1466561..6603895596 100644
--- a/camel/providers/nntp/camel-nntp-folder.c
+++ b/camel/providers/nntp/camel-nntp-folder.c
@@ -33,7 +33,7 @@
#include <string.h>
#include <fcntl.h>
-#include "camel/string-utils.h"
+#include "camel/camel-file-utils.h"
#include "camel/camel-stream-mem.h"
#include "camel/camel-data-wrapper.h"
#include "camel/camel-mime-message.h"
@@ -377,7 +377,7 @@ camel_nntp_folder_new (CamelStore *parent, const char *folder_name, CamelExcepti
return NULL;
/* If this doesn't work, stuff wont save, but let it continue anyway */
- (void) camel_mkdir_hier(root, 0777);
+ camel_mkdir (root, 0777);
folder = (CamelFolder *) camel_object_new (CAMEL_NNTP_FOLDER_TYPE);
nntp_folder = (CamelNNTPFolder *)folder;