Commit c67a8e8
committed
fix: add missing directory creation to GPX and event exports
- Add std::fs::create_dir_all() to export_to_gpx before file creation
- Add std::fs::create_dir_all() to export_to_event before file creation
- Both functions now match export_to_csv behavior for directory handling
- Fixes issue where exports to non-existent directories would fail with ENOENT
Resolves: #261 parent 65b64cc commit c67a8e8
1 file changed
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
377 | 377 | | |
378 | 378 | | |
379 | 379 | | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
380 | 385 | | |
381 | 386 | | |
382 | 387 | | |
| |||
442 | 447 | | |
443 | 448 | | |
444 | 449 | | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
445 | 455 | | |
446 | 456 | | |
447 | 457 | | |
| |||
0 commit comments