Commit d969f01
committed
TeeJee.FileSystem.vala: Remove any existing destination file before
attempting to write.
Commit 589c2e5 removed the file.delete() call. Unfortunately
it is documented that the Gio.FileCreateFlags.REPLACE_DESTINATION
flag only works for g_file_replace* methods, not for g_file_create,
so users were getting a 'file exists' error.
Since there's little chance of any sort of race condition here,
just restore the original code, and remove the useless g_file_create
flag so we're not fooled again.
Fixes #491.1 parent 02b9ca8 commit d969f01
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
174 | | - | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
175 | 179 | | |
176 | 180 | | |
177 | 181 | | |
| |||
0 commit comments