// ReadDir implements fs.ReadDirFS.
ReadDir implements fs.ReadDirFS.
// ReadDir implements fs . ReadDirFS .
func (f *S3FS) ReadDir(name string) ([]fs.DirEntry, error) {
	d, err := openDir(f.cl, f.bucket, name)
	if err != nil {
		return nil, &fs.PathError{
			Op:   "readdir",
			Path: name,
			Err:  err,
		}
	}
	return d.ReadDir(-1)
}
func ( f * S3FS ) ReadDir ( name string ) ( [ ] fs . DirEntry , error ) { d , err := openDir ( f . cl , f . bucket , name ) if err != nil { return nil , & fs . PathError { Op : " " , Path : name , Err : err , } } return d . ReadDir ( - 1 ) }
ReadDir implements fs.ReadDirFS.
ReadDir implements fs . ReadDirFS .