aboutsummaryrefslogtreecommitdiffstats
path: root/shell/evolution-storage.c
diff options
context:
space:
mode:
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)