Skip to content
This repository has been archived by the owner on Nov 17, 2020. It is now read-only.

Commit

Permalink
[gio] Improve doc for g_file_make_directory_with_parents()
Browse files Browse the repository at this point in the history
g_file_make_directory_with_parents() will fail for already
existing directories, unlike g_mkdir_with_parents(), so mention
this clearly in the docs.

https://bugzilla.gnome.org/show_bug.cgi?id=660791
  • Loading branch information
hadess committed Oct 4, 2011
1 parent 8592c27 commit 43e2a7d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gio/gfile.c
Original file line number Diff line number Diff line change
Expand Up @@ -3373,7 +3373,9 @@ g_file_make_directory (GFile *file,
*
* Creates a directory and any parent directories that may not exist similar to
* 'mkdir -p'. If the file system does not support creating directories, this
* function will fail, setting @error to %G_IO_ERROR_NOT_SUPPORTED.
* function will fail, setting @error to %G_IO_ERROR_NOT_SUPPORTED. If the
* directory itself already exists, this function will fail setting @error
* to %G_IO_ERROR_EXISTS, unlike the similar g_mkdir_with_parents().
*
* For a local #GFile the newly created directories will have the default
* (current) ownership and permissions of the current process.
Expand Down

0 comments on commit 43e2a7d

Please sign in to comment.