mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-09 19:06:15 +01:00
GFile: Document that G_FILE_CREATE_REPLACE_DESTINATION can only be used with g_file_replace() and variants
Passing it to e.g. g_file_create() for an already existing file will still cause a "file exists" error.
This commit is contained in:
parent
5ba5f5b686
commit
63809867bd
@ -199,7 +199,9 @@ typedef enum {
|
||||
* rather than a "save new version of" replace operation.
|
||||
* You can think of it as "unlink destination" before
|
||||
* writing to it, although the implementation may not
|
||||
* be exactly like that. Since 2.20
|
||||
* be exactly like that. This flag can only be used with
|
||||
* g_file_replace() and its variants, including g_file_replace_contents().
|
||||
* Since 2.20
|
||||
*
|
||||
* Flags used when an operation may create a file.
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user