summaryrefslogtreecommitdiffstats
path: root/contrib/go/_std_1.25/src/os/statat.go
blob: d460fe27984b468c4ab747b1f57d088c9a358d4e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Copyright 2026 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

//go:build !windows

package os

import (
	"internal/testlog"
)

func (f *File) lstatat(name string) (FileInfo, error) {
	if stathook != nil {
		fi, err := stathook(f, name)
		if fi != nil || err != nil {
			return fi, err
		}
	}
	if log := testlog.Logger(); log != nil {
		log.Stat(joinPath(f.Name(), name))
	}
	return f.lstatatNolog(name)
}