Add a stub for os.ReadDir()
This is needed by crypto/x509 in some configuration. Related to #1888.
Этот коммит содержится в:
родитель
b20905da13
коммит
a38b5c4e01
1 изменённых файлов: 4 добавлений и 0 удалений
|
@ -17,6 +17,10 @@ func (f *File) ReadDir(n int) ([]DirEntry, error) {
|
||||||
return nil, &PathError{"ReadDir", f.name, ErrNotImplemented}
|
return nil, &PathError{"ReadDir", f.name, ErrNotImplemented}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func ReadDir(name string) ([]DirEntry, error) {
|
||||||
|
return nil, &PathError{"ReadDir", name, ErrNotImplemented}
|
||||||
|
}
|
||||||
|
|
||||||
// The followings are copied from Go 1.16 official implementation:
|
// The followings are copied from Go 1.16 official implementation:
|
||||||
// https://github.com/golang/go/blob/go1.16/src/os/file.go
|
// https://github.com/golang/go/blob/go1.16/src/os/file.go
|
||||||
|
|
||||||
|
|
Загрузка…
Создание таблицы
Сослаться в новой задаче