]> www.fi.muni.cz Git - evince.git/blobdiff - libdocument/ev-file-helpers.c
Using g_mkdir_with_parents() instead of g_mkdir() to really ensure the
[evince.git] / libdocument / ev-file-helpers.c
index 5e83b3bc957c1376ca305f906e873848a9b5a29d..82e854336ec90793d0f15eb60cd61dab65848bda 100644 (file)
@@ -50,7 +50,7 @@ ensure_dir_exists (const char *dir)
        if (g_file_test (dir, G_FILE_TEST_IS_DIR))
                return TRUE;
        
-       if (g_mkdir (dir, 488) == 0)
+       if (g_mkdir_with_parents (dir, 488) == 0)
                return TRUE;
 
        if (errno == EEXIST)