github.com/tinygo-org/tinygo@v0.31.3-0.20240404173401-90b0bf646c27/src/os/dir_other.go (about)

     1  //go:build baremetal || js || windows
     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  }