pico
created pr with
92.1
cmds
checkout latest patchset:
ssh pr.pico.sh print 92 | git am -3checkout any patchset in a patch request:
ssh pr.pico.sh print 92.[rev] | git am -3add changes to patch request:
git format-patch main --stdout | ssh pr.pico.sh pr add 92
Patchset
92.1
fix(pgs): gen dir listing close object
Eric Bower
2025-12-16T04:03:51ZSemantic diff summary
0 added,
1 modified,
0 signature changed,
0 removed
across 1 analyzed file
+6
-2
pkg/apps/pgs/gen_dir_listing.go
#
| ... | ... | @@ -100,8 +100,12 @@ func shouldGenerateListing(st sst.ObjectStorage, bucket sst.Bucket, projectDir s | |
| 100 | 100 | } | |
| 101 | 101 | ||
| 102 | 102 | indexPath := dirPath + "index.html" | |
| 103 | - | _, _, err = st.GetObject(bucket, indexPath) | |
| 104 | - | return err != nil | |
| 103 | + | obj, _, err := st.GetObject(bucket, indexPath) | |
| 104 | + | if err != nil { | |
| 105 | + | return true | |
| 106 | + | } | |
| 107 | + | _ = obj.Close() | |
| 108 | + | return false | |
| 105 | 109 | } | |
| 106 | 110 | ||
| 107 | 111 | func generateDirectoryHTML(path string, entries []os.FileInfo) string { |