[Github-comments] [geany/geany] Make document_rename_file() return a gboolean; Abort save if rename fails (#1180)

elextr notifications at xxxxx
Thu Aug 18 10:03:49 UTC 2016


Not sure I totally agree that its better to not save at all if the rename fails, all that happens IIUC is an old file is left behind, the new data is still saved at the new location and the Geany buffer points to it.  Better to save the buffer for safety, and then let the user handle the leftovers.

On Windows renames fail when the old file is in use. On Linux renames across file systems fail.   So its quite possible that the rename fails and the save succeeds.

Also the change of `document_rename_file()` to return a value will need an API bump and an ABI bump. IMHO this isn't important enough to cause an ABI bump, it should be delayed until the next one happens.

-- 
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/pull/1180#issuecomment-240680026
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20160818/8ef22350/attachment.html>


More information about the Github-comments mailing list