stop if no files can be selected by the given patter