Commit 4a90a35
committed
Refactor recursive directory creation logic
- Remove early redundant GetFileAttributes existence check
- Introduce do-while loop to traverse and verify each parent segment
- Move end-pointer initialization after traversal loop
- Simplifies the control flow and improves robustness when creating nested directories.1 parent 873d05d commit 4a90a35
1 file changed
+10
-18
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
201 | 201 | | |
202 | 202 | | |
203 | 203 | | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | 204 | | |
215 | 205 | | |
216 | 206 | | |
| |||
223 | 213 | | |
224 | 214 | | |
225 | 215 | | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | | - | |
| 216 | + | |
| 217 | + | |
232 | 218 | | |
233 | 219 | | |
234 | 220 | | |
| |||
241 | 227 | | |
242 | 228 | | |
243 | 229 | | |
244 | | - | |
| 230 | + | |
245 | 231 | | |
246 | 232 | | |
247 | 233 | | |
248 | 234 | | |
249 | 235 | | |
250 | 236 | | |
251 | | - | |
252 | 237 | | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
253 | 245 | | |
254 | 246 | | |
255 | 247 | | |
| |||
0 commit comments