/*
GoCheese -- Python private package repository and caching proxy
-Copyright (C) 2019-2021 Sergey Matveev <stargrave@stargrave.org>
+Copyright (C) 2019-2022 Sergey Matveev <stargrave@stargrave.org>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
"bytes"
_ "embed"
"html/template"
- "io/ioutil"
"log"
"net/http"
"os"
)
func serveHRRoot(w http.ResponseWriter, r *http.Request) {
- files, err := ioutil.ReadDir(Root)
+ files, err := os.ReadDir(Root)
if err != nil {
log.Println("error", r.RemoteAddr, "hr-root", err)
http.Error(w, err.Error(), http.StatusInternalServerError)