Commit 282752d
refactor(os/osutil)!: simplify WriteFileReader and add perm parameter
BREAKING CHANGE: WriteFileReader signature changed from
(filename, r) to (filename, r, perm)
- Add os.FileMode parameter for explicit permission control
- Replace bufio.Writer + ioutil.Write with simpler io.Copy
- Remove panic on Close() error - now fails gracefully
- Remove unused ioutil import
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent 19b604d commit 282752d
1 file changed
+6
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | 11 | | |
13 | 12 | | |
14 | 13 | | |
| |||
77 | 76 | | |
78 | 77 | | |
79 | 78 | | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
| 79 | + | |
| 80 | + | |
85 | 81 | | |
86 | 82 | | |
87 | 83 | | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
96 | 88 | | |
0 commit comments