code: def dir_empty(d):
      '''Return True if given directory is empty, false otherwise.'''
      flist = glob.glob(os.path.join(d,'*'))
      return (len(flist) == 0f dir_empty(d):
      '''Return True if given directory is empty, false otherwise.'''
      flist = glob.glob(os.path.join(d,'*'))
      return (len(flist) == 0)
docs: Return True if given directory is empty, false otherwise.