docstr: Add a list of files to the current component as specified in the
  glob pattern. Individual files can be excluded in the exclude list.
code: def glob(self, pattern, exclude=None):
      """Add a list of files to the current component as specified in the
      glob pattern. Individual files can be excluded in the exclude list.
      """
      try:
          files = os.listdir(self.absolute)
      except OSError:
          return []
      if pattern[:1] != ".":
          files = (f for f in files if f[0] != ".")
      files = fnmatch.filter(files, pattern)
      for f in files:
          if exclude and f in exclude:
              continue
          self.add_file(f)
      return files
  
imports: from _msi import *
  import fnmatch
  import os
  import re
  import string
  import sys
  import warnings
label_desc: Use image node_id 5 for calling the Directory obj's underlying member method code with example usage: obj.glob(pattern, exclude) and returns: files, list