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
This commit is contained in:
Nick Treleaven 2007-07-04 12:07:57 +00:00
parent 90d529f289
commit e84ef634c8
2 changed files with 9 additions and 0 deletions

View File

@ -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 <enrico.troeger@uvena.de>

View File

@ -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;
}