|
|
@@ -47,6 +47,8 @@ func DirIndex(ctx *context.Context) { |
|
|
|
return |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
ctx.Data["Title"] = attachment.Name |
|
|
|
} |
|
|
|
|
|
|
|
files, err := ioutil.ReadDir(setting.Attachment.Minio.RealPath + setting.Attachment.Minio.Bucket + "/" + setting.Attachment.Minio.BasePath + |
|
|
@@ -86,7 +88,5 @@ func DirIndex(ctx *context.Context) { |
|
|
|
|
|
|
|
ctx.Data["Dirs"] = fileInfos |
|
|
|
|
|
|
|
ctx.Data["Title"] = attachment.Name |
|
|
|
|
|
|
|
ctx.HTML(200, tplDirIndex) |
|
|
|
} |