Commit e373fb0
committed
Add deleteJsonFile utility function in fileUtils.ts
- Introduced a new function `deleteJsonFile` to handle the deletion of JSON files. This function gracefully manages errors by ignoring 'file not found' errors (ENOENT) while throwing a custom error for other issues.
- This enhancement improves file management capabilities within the application, allowing for better handling of temporary or unnecessary JSON files.
These changes contribute to a more robust utility for file operations.1 parent a6eaa04 commit e373fb0
1 file changed
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
0 commit comments