From e84ef634c8784a7d1de6563294fdd53c2ab2bbe4 Mon Sep 17 00:00:00 2001 From: Nick Treleaven Date: Wed, 4 Jul 2007 12:07:57 +0000 Subject: [PATCH] Create /tags directory if it doesn't exist when loading global tags. git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1661 ea778897-0a13-0410-b9d1-a72fbfd435f5 --- ChangeLog | 3 +++ src/symbols.c | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/ChangeLog b/ChangeLog index 9d514d82..ead76e72 100644 --- a/ChangeLog +++ b/ChangeLog @@ -14,6 +14,9 @@ Capitalize 2 menu item labels. * plugins/classbuilder.c: Make Class Builder dialog close when pressing escape. + * src/symbols.c: + Create $configdir/tags directory if it doesn't exist when loading + global tags. 2007-07-02 Enrico Tröger diff --git a/src/symbols.c b/src/symbols.c index 9e81a87a..16cde56d 100644 --- a/src/symbols.c +++ b/src/symbols.c @@ -845,6 +845,12 @@ static GHashTable *init_user_tags() // don't need to delete list contents because they are now used for hash contents g_slist_free(file_list); + + // create the tags dir for next time if it doesn't exist + if (! g_file_test(user_tags_dir, G_FILE_TEST_IS_DIR)) + { + utils_mkdir(user_tags_dir, FALSE); + } return lang_hash; }