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:
Sebastian Dröge 2020-07-27 18:35:38 +03:00
parent 5ba5f5b686
commit 63809867bd

View File

@ -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.
*/