diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2003-07-08 04:58:24 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2003-07-08 04:58:24 +0800 |
commit | 300101f4707c7c0a0e29d24527a93afe0f77a2c7 (patch) | |
tree | aac6a6bde47fb918f72abdac77d6e33f3759a6c4 /camel/camel-data-cache.c | |
parent | 393aafe6b21dfc482b41a08297292ff0e8b05037 (diff) | |
download | gsoc2013-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/camel-data-cache.c')
-rw-r--r-- | camel/camel-data-cache.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/camel/camel-data-cache.c b/camel/camel-data-cache.c index b5e615a112..a585f59a9d 100644 --- a/camel/camel-data-cache.c +++ b/camel/camel-data-cache.c @@ -128,7 +128,7 @@ camel_data_cache_new(const char *path, guint32 flags, CamelException *ex) { CamelDataCache *cdc; - if (camel_file_util_mkdir(path, 0700) == -1) { + if (camel_mkdir (path, 0700) == -1) { camel_exception_setv(ex, CAMEL_EXCEPTION_SYSTEM, _("Unable to create cache path")); return NULL; @@ -239,7 +239,7 @@ data_cache_path(CamelDataCache *cdc, int create, const char *path, const char *k sprintf(dir, "%s/%s/%02x", cdc->path, path, hash); if (access(dir, F_OK) == -1) { if (create) - camel_file_util_mkdir(dir, 0700); + camel_mkdir (dir, 0700); } else if (cdc->priv->expire_inc == hash && (cdc->expire_age != -1 || cdc->expire_access != -1)) { time_t now; |