> To me it came across that gio would first use the atomic routine (even when 
> not selected) and only try gio if the atomic is not able to recreate metadata.

The `g_file_replace_contents()` is a GIO function, and (when I read its source) 
it creates a new file, tries to copy metadata from the existing file, if that 
succeeds it writes the new data and does the rename over the old file, if any 
of the above fails, it copies the old file to a backup, truncates the old file 
and writes the new data to it, thus preserving metadata and links. So it does 
use the atomic method if it can, but not by calling `g_file_set_contents()` and 
note its all in GIO, not something Geany does.

I don't remember and didn't record what it does with links when things succeed, 
and as I said above it may have changed in the last four years.  If you checked 
its source and it has comments in the code that say it handles links then thats 
great, but as its not documented behaviour don't depend on it.



-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/1533#issuecomment-313887270

Reply via email to