pico

created pr with pico/92.1 on 2025-12-16T04:16:16Z · by c8ef7d19
cmds
checkout latest patchset:
ssh pr.pico.sh pull pico:92 | git am -3
checkout specific patchset revision:
ssh pr.pico.sh pull pico:92 [rev] | git am -3
add changes to patch request:
git format-patch main --stdout | ssh pr.pico.sh pico:92
add comment to patch request:
ssh pr.pico.sh comment pico:92 "lgtm!"
+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