Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Eisel <eiseljulian@gmail.com>2017-04-18 14:18:49 +0300
committerJulian Eisel <eiseljulian@gmail.com>2017-04-18 14:18:49 +0300
commit792f0aaad54631712de02df6b301e58ae3b59575 (patch)
tree92fa5d6638072faa60da1b6490091f57abf81b12 /source/blender/blenlib/intern/path_util.c
parentbc6f68944885da097d20e94812bbac58ade5f985 (diff)
parent8825a8e951c193ff855a1bbfb5a34ea93b8ccc55 (diff)
Merge branch 'master' into HMD_viewportHMD_viewport
Conflicts: source/blender/editors/gpencil/gpencil_paint.c
Diffstat (limited to 'source/blender/blenlib/intern/path_util.c')
-rw-r--r--source/blender/blenlib/intern/path_util.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/blenlib/intern/path_util.c b/source/blender/blenlib/intern/path_util.c
index 7b765cfa939..40b6aaa18c1 100644
--- a/source/blender/blenlib/intern/path_util.c
+++ b/source/blender/blenlib/intern/path_util.c
@@ -1234,14 +1234,16 @@ void BLI_make_exist(char *dir)
/**
* Ensures that the parent directory of *name exists.
+ *
+ * \return true on success (i.e. given path now exists on FS), false otherwise.
*/
-void BLI_make_existing_file(const char *name)
+bool BLI_make_existing_file(const char *name)
{
char di[FILE_MAX];
BLI_split_dir_part(name, di, sizeof(di));
/* make if the dir doesn't exist */
- BLI_dir_create_recursive(di);
+ return BLI_dir_create_recursive(di);
}
/**