aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-store.c
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/camel-store.c
parent393aafe6b21dfc482b41a08297292ff0e8b05037 (diff)
downloadgsoc2013-evolution-300101f4707c7c0a0e29d24527a93afe0f77a2c7.tar.gz
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/camel-store.c')
-rw-r--r--camel/camel-store.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/camel/camel-store.c b/camel/camel-store.c
index 2756fbc483..0bc80b43de 100644
--- a/camel/camel-store.c
+++ b/camel/camel-store.c
@@ -1052,31 +1052,6 @@ camel_store_noop (CamelStore *store, CamelException *ex)
}
-int
-camel_mkdir_hier (const char *path, mode_t mode)
-{
- char *copy, *p;
-
- p = copy = g_strdup (path);
- do {
- p = strchr (p + 1, '/');
- if (p)
- *p = '\0';
- if (access (copy, F_OK) == -1) {
- if (mkdir (copy, mode) == -1) {
- g_free (copy);
- return -1;
- }
- }
- if (p)
- *p = '/';
- } while (p);
-
- g_free (copy);
- return 0;
-}
-
-
/* Return true if these uri's refer to the same object */
gboolean
camel_store_uri_cmp(CamelStore *store, const char *uria, const char *urib)