summaryrefslogtreecommitdiffstats
path: root/contrib/go/_std_1.26/src/os/removeall_unix.go
blob: 61e848d5a547c452ddf3a146b33980157cee8f95 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
// 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
}