Repository navigation
Commit d522363
fix(web): detect a folder whose name looks like a media file or a PDF
The read was skipped for media and PDF paths because their contents are never
shown, so a folder named `assets.png` never produced the path_not_file failure
and rendered as a broken media preview. The server stats before reading, so the
read costs an open and a stat for a folder and returns no body.
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>1 parent a08b6bf commit d522363
1 file changed
Lines changed: 9 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
989 | 989 | | |
990 | 990 | | |
991 | 991 | | |
992 | | - | |
993 | | - | |
994 | | - | |
995 | | - | |
996 | | - | |
997 | | - | |
| 992 | + | |
| 993 | + | |
| 994 | + | |
| 995 | + | |
| 996 | + | |
998 | 997 | | |
999 | 998 | | |
1000 | 999 | | |
| |||
1053 | 1052 | | |
1054 | 1053 | | |
1055 | 1054 | | |
1056 | | - | |
1057 | | - | |
| 1055 | + | |
| 1056 | + | |
| 1057 | + | |
| 1058 | + | |
1058 | 1059 | | |
1059 | 1060 | | |
1060 | 1061 | | |
| |||
0 commit comments