func (imd *Directory) Readdir(ctx context.Context) (fs.Entries, error) {
	if imd.readdirError != nil {
		return nil, imd.readdirError
	}

	if imd.onReaddir != nil {
		imd.onReaddir()
	}

	return append(fs.Entries(nil), imd.children...), nil
}
// Readdir gets the contents of a directory.
Readdir gets the contents of a directory.
// Readdir gets the contents of a directory .
func (imd *Directory) Readdir(ctx context.Context) (fs.Entries, error) {
	if imd.readdirError != nil {
		return nil, imd.readdirError
	}
	if imd.onReaddir != nil {
		imd.onReaddir()
	}
	return append(fs.Entries(nil), imd.children...), nil
}
func ( imd * Directory ) Readdir ( ctx context . Context ) ( fs . Entries , error ) { if imd . readdirError != nil { return nil , imd . readdirError } if imd . onReaddir != nil { imd . onReaddir ( ) } return append ( fs . Entries ( nil ) , imd . children ... ) , nil }
Readdir gets the contents of a directory.
Readdir gets the contents of a directory .