From 2710153a377a3f60aa1ecb5d9d4c0914b29ca246 Mon Sep 17 00:00:00 2001 From: Eduardo Lima Date: Mon, 21 May 2007 12:45:19 +0000 Subject: Using g_mkdir_with_parents() instead of g_mkdir() to really ensure the 2007-05-21 Eduardo Lima * libdocument/ev-file-helpers.c: (ensure_dir_exists): Using g_mkdir_with_parents() instead of g_mkdir() to really ensure the directory exists. svn path=/trunk/; revision=2471 --- (limited to 'libdocument') diff --git a/libdocument/ev-file-helpers.c b/libdocument/ev-file-helpers.c index 5e83b3b..82e8543 100644 --- a/libdocument/ev-file-helpers.c +++ b/libdocument/ev-file-helpers.c @@ -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) -- cgit v0.9.1