mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 23:16:14 +01:00
gfile: Clarify that g_file_replace_contents() uses atomic renames
It uses g_file_replace() internally, so is inherently safe. Though it might vomit .goutputstream-XXXXXX files all over the place occasionally.
This commit is contained in:
parent
6e57650387
commit
4b02bfd6ee
@ -7132,7 +7132,9 @@ g_file_load_contents_finish (GFile *file,
|
||||
* or the error %G_IO_ERROR_WRONG_ETAG will be returned.
|
||||
*
|
||||
* If @make_backup is %TRUE, this function will attempt to make a backup
|
||||
* of @file.
|
||||
* of @file. Internally, it uses g_file_replace(), so will try to replace the
|
||||
* file contents in the safest way possible. For example, atomic renames are
|
||||
* used when replacing local files’ contents.
|
||||
*
|
||||
* If @cancellable is not %NULL, then the operation can be cancelled by
|
||||
* triggering the cancellable object from another thread. If the operation
|
||||
|
Loading…
Reference in New Issue
Block a user