def globber(path, pattern=u'*'):
 if os.path.exists(path):
  return [f for f in os.listdir(path) if fnmatch.fnmatch(f, pattern)]
 else:
  return []

def globber ( path , pattern = u'*' ) : if os . path . exists ( path ) : return [ f for f in os . listdir ( path ) if fnmatch . fnmatch ( f , pattern ) ] else : return [ ]
return matching base file/folder names in folder path .