func FilterFromPaths(paths []string) *models.SceneFilterType {
	ret := &models.SceneFilterType{}
	or := ret
	sep := string(filepath.Separator)

	for _, p := range paths {
		if !strings.HasSuffix(p, sep) {
			p += sep
		}

		if ret.Path == nil {
			or = ret
		} else {
			newOr := &models.SceneFilterType{}
			or.Or = newOr
			or = newOr
		}

		or.Path = &models.StringCriterionInput{
			Modifier: models.CriterionModifierEquals,
			Value:    p + "%",
		}
	}

	return ret
}
// FilterFromPaths creates a SceneFilterType that filters using the provided
// paths.
FilterFromPaths creates a SceneFilterType that filters using the provided
paths.
// FilterFromPaths creates a SceneFilterType that filters using the provided // paths .
func FilterFromPaths(paths []string) *models.SceneFilterType {
	ret := &models.SceneFilterType{}
	or := ret
	sep := string(filepath.Separator)
	for _, p := range paths {
		if !strings.HasSuffix(p, sep) {
			p += sep
		}
		if ret.Path == nil {
			or = ret
		} else {
			newOr := &models.SceneFilterType{}
			or.Or = newOr
			or = newOr
		}
		or.Path = &models.StringCriterionInput{
			Modifier: models.CriterionModifierEquals,
			Value:    p + "%",
		}
	}
	return ret
}
func FilterFromPaths ( paths [ ] string ) * models . SceneFilterType { ret := & models . SceneFilterType { } or := ret sep := string ( filepath . Separator ) for _ , p := range paths { if ! strings . HasSuffix ( p , sep ) { p += sep } if ret . Path == nil { or = ret } else { newOr := & models . SceneFilterType { } or . Or = newOr or = newOr } or . Path = & models . StringCriterionInput { Modifier : models . CriterionModifierEquals , Value : p + " " , } } return ret }
FilterFromPaths creates a SceneFilterType that filters using the provided
paths.
FilterFromPaths creates a SceneFilterType that filters using the provided paths .