You've already forked filebrowser
mirror of
https://github.com/filebrowser/filebrowser.git
synced 2025-11-26 14:25:26 +08:00
unexport fileInfo
This commit is contained in:
4
http.go
4
http.go
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user