diff options
author | Dave Henderson <dhenderson@gmail.com> | 2022-09-05 19:25:34 -0400 |
---|---|---|
committer | Dave Henderson <dhenderson@gmail.com> | 2022-09-05 19:25:34 -0400 |
commit | fded2644f8ddda33002353ee3aedd15195f17cb5 (patch) | |
tree | 76af0a9b2d9919f0682aee081d0ad6e9c7975fca /modules/caddyhttp/fileserver/browsetplcontext.go | |
parent | 487217519cd8dad207d04d5db966aacff3949b1d (diff) |
Drop requirement for filesystems to implement fs.StatFS
Signed-off-by: Dave Henderson <dhenderson@gmail.com>
Diffstat (limited to 'modules/caddyhttp/fileserver/browsetplcontext.go')
-rw-r--r-- | modules/caddyhttp/fileserver/browsetplcontext.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/caddyhttp/fileserver/browsetplcontext.go b/modules/caddyhttp/fileserver/browsetplcontext.go index 49788ee..cd24fc2 100644 --- a/modules/caddyhttp/fileserver/browsetplcontext.go +++ b/modules/caddyhttp/fileserver/browsetplcontext.go @@ -65,7 +65,7 @@ func (fsrv *FileServer) directoryListing(entries []fs.DirEntry, canGoUp bool, ro fileIsSymlink := isSymlink(info) if fileIsSymlink { path := caddyhttp.SanitizedPathJoin(root, path.Join(urlPath, info.Name())) - fileInfo, err := fsrv.fileSystem.Stat(path) + fileInfo, err := fs.Stat(fsrv.fileSystem, path) if err == nil { size = fileInfo.Size() } |