dir_other.mx raw
1 //go:build baremetal || js || windows || wasm_unknown || nintendoswitch
2
3 // Copyright 2009 The Go Authors. All rights reserved.
4 // Use of this source code is governed by a BSD-style
5 // license that can be found in the LICENSE file.
6
7 package os
8
9 import (
10 "syscall"
11 )
12
13 type dirInfo struct {
14 }
15
16 func (*dirInfo) close() {
17 }
18
19 func (f *File) readdir(n int, mode readdirMode) (names []string, dirents []DirEntry, infos []FileInfo, err error) {
20 return nil, nil, nil, &PathError{Op: "readdir unimplemented", Err: syscall.ENOTDIR}
21 }
22