blob: 61e848d5a547c452ddf3a146b33980157cee8f95 [file] [edit]
// Copyright 2025 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 unix || wasip1
package os
func newDirFile(fd int, name string) (*File, error) {
// We use kindNoPoll because we know that this is a directory.
return newFile(fd, name, kindNoPoll, false), nil
}