def has_subdirectories(path, include, exclude, show_all):
 try:
  return (len(listdir(path, include, exclude, show_all, folders_only=True)) > 1)
 except (IOError, OSError):
  return False

def has_subdirectories ( path , include , exclude , show_all ) : try : return ( len ( listdir ( path , include , exclude , show_all , folders_only = True ) ) > 1 ) except ( IOError , OSError ) : return False
return true if path has subdirectories .