aboutsummaryrefslogtreecommitdiffstats
path: root/shell/evolution-storage.c
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2001-01-20 05:13:25 +0800
committerDan Winship <danw@src.gnome.org>2001-01-20 05:13:25 +0800
commitad68d3656f56b4a4f8194f9cc68721769041260f (patch)
treec8658e56094b61433c9e2a6de2ba8edc4161d0e1 /shell/evolution-storage.c
parent9a33302fa098fa5a93e7919c32a2aa67a7e092da (diff)
downloadgsoc2013-evolution-ad68d3656f56b4a4f8194f9cc68721769041260f.tar.gz
gsoc2013-evolution-ad68d3656f56b4a4f8194f9cc68721769041260f.tar.zst
gsoc2013-evolution-ad68d3656f56b4a4f8194f9cc68721769041260f.zip
New function. Obvious.
* evolution-storage.c (evolution_storage_folder_exists): New function. Obvious. svn path=/trunk/; revision=7654
Diffstat (limited to 'shell/evolution-storage.c')
-rw-r--r--shell/evolution-storage.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/shell/evolution-storage.c b/shell/evolution-storage.c
index c87c031cd0..75b15ee25e 100644
--- a/shell/evolution-storage.c
+++ b/shell/evolution-storage.c
@@ -734,5 +734,21 @@ evolution_storage_removed_folder (EvolutionStorage *evolution_storage,
return result;
}
+gboolean
+evolution_storage_folder_exists (EvolutionStorage *evolution_storage,
+ const char *path)
+{
+ EvolutionStoragePrivate *priv;
+
+ g_return_val_if_fail (EVOLUTION_IS_STORAGE (evolution_storage),
+ EVOLUTION_STORAGE_ERROR_INVALIDPARAMETER);
+ g_return_val_if_fail (path != NULL, EVOLUTION_STORAGE_ERROR_INVALIDPARAMETER);
+ g_return_val_if_fail (g_path_is_absolute (path), EVOLUTION_STORAGE_ERROR_INVALIDPARAMETER);
+
+ priv = evolution_storage->priv;
+
+ return e_folder_tree_get_folder (priv->folder_tree, path) != NULL;
+}
+
E_MAKE_TYPE (evolution_storage, "EvolutionStorage", EvolutionStorage, class_init, init, PARENT_TYPE)