pico

created pr with 92.1 on 2025-12-16T04:16:16Z · by c8ef7d19
cmds
checkout latest patchset:
ssh pr.pico.sh print 92 | git am -3
checkout any patchset in a patch request:
ssh pr.pico.sh print 92.[rev] | git am -3
add changes to patch request:
git format-patch main --stdout | ssh pr.pico.sh pr add 92
+6 -2 pkg/apps/pgs/gen_dir_listing.go #
......@@ -100,8 +100,12 @@ func shouldGenerateListing(st sst.ObjectStorage, bucket sst.Bucket, projectDir s
100100 }
101101
102102 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
105109 }
106110
107111 func generateDirectoryHTML(path string, entries []os.FileInfo) string {
Back to top