Commit 297aae7
committed
Ensure createTemporaryDirectory() can be called in a loop
When calling said method from the same code location multiple times, we
should still get an empty temporary directory every time, even if there
are still-open files in the directory of the default name. For Windows,
emptying directories poses an insurmountable problem when they contain
files that are still in use, therefore we have to fall back to creating
new temporary directories.
Identified by Jennyver Jenkins as a problem when building and testing
ij1-patcher on Windows.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>1 parent 9c9ac28 commit 297aae7
1 file changed
+17
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
37 | 38 | | |
| 39 | + | |
38 | 40 | | |
39 | 41 | | |
40 | 42 | | |
| |||
63 | 65 | | |
64 | 66 | | |
65 | 67 | | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
66 | 83 | | |
0 commit comments