errfunc ptr is nullable, so use Option as part of interface to glob (#7752).