Commit ec4235b
Bug 567104 - Export Error if a File should be overriden
The change done in 9c6c551 introduces
a regression due to which it is no longer possible to export a file to
the file system, if the file already exists.
When copying a file using the Files API, one needs to explicitly set the
REPLACE_EXISTING flag, in order to overwrite the target file, otherwise
a FileAreadyExistsException is thrown.
Note: The "writeFile" method is only called when the user explicitly chose to overwrite the existing file. It is therefore safe to always set this flag.1 parent 61ce530 commit ec4235b
File tree
2 files changed
+6
-3
lines changed- bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer
- tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/datatransfer
2 files changed
+6
-3
lines changedLines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
| 87 | + | |
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| |||
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
217 | 217 | | |
218 | 218 | | |
219 | 219 | | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
220 | 223 | | |
221 | 224 | | |
222 | 225 | | |
| |||
0 commit comments