def _isGlobbingExpression(segments=None):
 if (not segments):
  return False
 globCandidate = segments[(-1)]
 globTranslations = fnmatch.translate(globCandidate)
 nonGlobTranslations = _testTranslation.replace('TEST', globCandidate, 1)
 if (nonGlobTranslations == globTranslations):
  return False
 else:
  return True

def _isGlobbingExpression ( segments = None ) : if ( not segments ) : return False globCandidate = segments [ ( - 1 ) ] globTranslations = fnmatch . translate ( globCandidate ) nonGlobTranslations = _testTranslation . replace ( 'TEST' , globCandidate , 1 ) if ( nonGlobTranslations == globTranslations ) : return False else : return True
helper for checking if a ftpshell segments contains a wildcard unix expression .