mirror of
https://github.com/filebrowser/filebrowser.git
synced 2025-05-08 19:22:57 +00:00
fix: check symlink target type (closes #1488)
This commit is contained in:
parent
8ecc2da947
commit
76b466f649
@ -124,6 +124,7 @@ func stat(opts FileOptions) (*FileInfo, error) {
|
|||||||
// set correct file size in case of symlink
|
// set correct file size in case of symlink
|
||||||
if file != nil && file.IsSymlink {
|
if file != nil && file.IsSymlink {
|
||||||
file.Size = info.Size()
|
file.Size = info.Size()
|
||||||
|
file.IsDir = info.IsDir()
|
||||||
return file, nil
|
return file, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user