diff options
author | Dave Henderson <[email protected]> | 2022-09-05 19:25:34 -0400 |
---|---|---|
committer | Dave Henderson <[email protected]> | 2022-09-05 19:25:34 -0400 |
commit | fded2644f8ddda33002353ee3aedd15195f17cb5 (patch) | |
tree | 76af0a9b2d9919f0682aee081d0ad6e9c7975fca /modules/caddyhttp/fileserver/browse.go | |
parent | 487217519cd8dad207d04d5db966aacff3949b1d (diff) | |
download | caddy-fded2644f8ddda33002353ee3aedd15195f17cb5.tar.gz caddy-fded2644f8ddda33002353ee3aedd15195f17cb5.zip |
Drop requirement for filesystems to implement fs.StatFS
Signed-off-by: Dave Henderson <[email protected]>
Diffstat (limited to 'modules/caddyhttp/fileserver/browse.go')
-rw-r--r-- | modules/caddyhttp/fileserver/browse.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/caddyhttp/fileserver/browse.go b/modules/caddyhttp/fileserver/browse.go index 90263560c..7804d19b7 100644 --- a/modules/caddyhttp/fileserver/browse.go +++ b/modules/caddyhttp/fileserver/browse.go @@ -210,7 +210,7 @@ func (fsrv *FileServer) isSymlinkTargetDir(f fs.FileInfo, root, urlPath string) return false } target := caddyhttp.SanitizedPathJoin(root, path.Join(urlPath, f.Name())) - targetInfo, err := fsrv.fileSystem.Stat(target) + targetInfo, err := fs.Stat(fsrv.fileSystem, target) if err != nil { return false } |