Commit 581b44f
committed
DeferredFileOutputStream now clears and deletes its temporary storage by
default (#858)
To get the old behavior back, call
org.apache.commons.io.output.DeferredFileOutputStream.Builder.setDeleteTempFileOnClose(false)
- Add DeferredFileOutputStream.Builder.setDeleteTempFileOnClose(boolean)
- Add PathUtils.clear[IfExists](Path)
- Add PathUtils.deleteIfExists(Path)
- Update generic type of RandomAccessFileMode.accept(Path, IOConsumer)
from IOConsumer<RandomAccessFile> to IOConsumer<IORandomAccessFile>
- Harden tests for NPEs on failures, happy path unchanged.1 parent 25114c8 commit 581b44f
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
58 | 61 | | |
59 | 62 | | |
60 | 63 | | |
61 | 64 | | |
62 | 65 | | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
63 | 69 | | |
64 | 70 | | |
65 | 71 | | |
| |||
0 commit comments