Source file src/os/statat_unix.go

     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 aix || darwin || dragonfly || freebsd || wasip1 || linux || netbsd || openbsd || solaris
     6  
     7  package os
     8  
     9  import (
    10  	"internal/syscall/unix"
    11  )
    12  
    13  func (f *File) lstatatNolog(name string) (FileInfo, error) {
    14  	var fs fileStat
    15  	if err := f.pfd.Fstatat(name, &fs.sys, unix.AT_SYMLINK_NOFOLLOW); err != nil {
    16  		return nil, f.wrapErr("fstatat", err)
    17  	}
    18  	fillFileStatFromSys(&fs, name)
    19  	return &fs, nil
    20  }
    21  

View as plain text