Commit f0dd465
Skip iMessage attachments with empty paths
The iMessage SDK occasionally returns image attachments with an empty `path` (file deleted/never downloaded). Passing '' to readFile produced a stream of "ENOENT: ... open ''" warnings; filter them out before the read.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 121c7f2 commit f0dd465
1 file changed
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
74 | | - | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
75 | 80 | | |
76 | 81 | | |
77 | 82 | | |
| |||
0 commit comments