Skip to content

Commit

Permalink
fix: check symlink target type (closes #1488)
Browse files Browse the repository at this point in the history
  • Loading branch information
o1egl committed Aug 4, 2021
1 parent 8ecc2da commit 76b466f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions files/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 76b466f

Please sign in to comment.