unexport fileInfo

This commit is contained in:
Henrique Dias
2017-06-25 13:03:59 +01:00
parent 1ba9608a9c
commit e6492286db
8 changed files with 21 additions and 21 deletions

View File

@@ -18,7 +18,7 @@ func matchURL(first, second string) bool {
// ServeHTTP determines if the request is for this plugin, and if all prerequisites are met.
func (c *FileManager) ServeHTTP(w http.ResponseWriter, r *http.Request) (int, error) {
var (
fi *FileInfo
fi *fileInfo
code int
err error
user *user
@@ -131,7 +131,7 @@ func (c *FileManager) ServeHTTP(w http.ResponseWriter, r *http.Request) (int, er
if r.Method == http.MethodGet {
// Gets the information of the directory/file
fi, err = GetInfo(r.URL, c, user)
fi, err = getInfo(r.URL, c, user)
if err != nil {
if r.Method == http.MethodGet {
return htmlError(w, code, err)