Debian Codegraph @

src/os/statat.go

raw
1 // Copyright 2026 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
4
5 //go:build !windows
6
7 package os
8
9 import (
10 "internal/testlog"
11 )
12
13 func (f *File) lstatat(name string) (FileInfo, error) {
14 if stathook != nil {
15 fi, err := stathook(f, name)
16 if fi != nil || err != nil {
17 return fi, err
18 }
19 }
20 if log := testlog.Logger(); log != nil {
21 log.Stat(joinPath(f.Name(), name))
22 }
23 return f.lstatatNolog(name)
24 }