bpmeta: use glob() to determine the number of subfiles in a directory