fix: check symlink target type (closes #1488)

This commit is contained in:
Oleg Lobanov 2021-08-04 11:36:25 +02:00
parent 8ecc2da947
commit 76b466f649
No known key found for this signature in database
GPG Key ID: 7CC64E41212621B0
1 changed files with 1 additions and 0 deletions

View File

@ -124,6 +124,7 @@ func stat(opts FileOptions) (*FileInfo, error) {
// set correct file size in case of symlink
if file != nil && file.IsSymlink {
file.Size = info.Size()
file.IsDir = info.IsDir()
return file, nil
}