Simple S3-like server for development purposes, written in Go
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Delete unused get params

+2 -2
+2 -2
server.go
··· 130 130 } 131 131 defer root.Close() 132 132 133 - path := filepath.Join(r.PathValue("bucket"), r.PathValue("key")) 133 + path := filepath.Join(r.PathValue("bucket")) 134 134 135 135 bucketName := strings.Split(path, "/")[0] 136 136 if err := root.Mkdir(bucketName, 0775); err != nil { ··· 152 152 } 153 153 defer root.Close() 154 154 155 - path := filepath.Join(r.PathValue("bucket"), r.PathValue("key")) 155 + path := filepath.Join(r.PathValue("bucket")) 156 156 157 157 bucketName := strings.Split(path, "/")[0] 158 158 files, err := fs.ReadDir(root.FS(), bucketName)